diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-27 16:50:08 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-27 16:50:08 -0700 |
commit | c8dafee1cd4fc5b93ae267d4dccd78d656043bdd (patch) | |
tree | e7f614be3ab594c2616e963a35065f5dab3d08c9 /web/dartboat_wasm.c | |
parent | 017f75dc4ed67011e8a1005457dc4110f60d921a (diff) | |
download | dartboat-c8dafee1cd4fc5b93ae267d4dccd78d656043bdd.tar.gz dartboat-c8dafee1cd4fc5b93ae267d4dccd78d656043bdd.tar.xz |
web: no need to expose horizontal and vertical stdevs individually
Diffstat (limited to 'web/dartboat_wasm.c')
-rw-r--r-- | web/dartboat_wasm.c | 8 |
1 files changed, 3 insertions, 5 deletions
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() |