From c8dafee1cd4fc5b93ae267d4dccd78d656043bdd Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Wed, 27 Apr 2022 16:50:08 -0700 Subject: web: no need to expose horizontal and vertical stdevs individually --- web/dartboat_wasm.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'web/dartboat_wasm.c') diff --git a/web/dartboat_wasm.c b/web/dartboat_wasm.c index 83e2a42..26018fa 100644 --- a/web/dartboat_wasm.c +++ b/web/dartboat_wasm.c @@ -449,12 +449,10 @@ EMSCRIPTEN_KEEPALIVE void set_delay(int delay) delay_ms = delay; } -EMSCRIPTEN_KEEPALIVE void set_stdev(float hstdev, float vstdev) +EMSCRIPTEN_KEEPALIVE void set_stdev(float stdev) { - if (!isnan(hstdev)) - horizontal_stdev = hstdev; - if (!isnan(vstdev)) - vertical_stdev = vstdev; + if (!isnan(stdev)) + horizontal_stdev = vertical_stdev = stdev; } void init_boat() -- cgit v1.2.3-70-g09d2