From 50f5ce01c543ef2e4d780f3aed8a565b142865ea Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 3 May 2022 05:56:04 -0700 Subject: web: move reading opts to opts file --- web/web_opts.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'web/web_opts.c') diff --git a/web/web_opts.c b/web/web_opts.c index 1188232..0f37bba 100644 --- a/web/web_opts.c +++ b/web/web_opts.c @@ -8,6 +8,13 @@ int delay_ms = 1000; +void opts_init() +{ + EM_ASM(readOpts()); + EM_ASM({updateDelay($0)}, delay_ms); + EM_ASM({updateStdev($0)}, horizontal_stdev); +} + EMSCRIPTEN_KEEPALIVE void set_delay(int delay) { -- cgit v1.2.3-70-g09d2