From 723b23fa4102144ce514fac9f32c910748507969 Mon Sep 17 00:00:00 2001 From: mmcw-dev Date: Sat, 23 Feb 2019 22:19:42 -0500 Subject: [PATCH] Fix intval bug and apply UI projector value change to digital file state. --- app/main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/main.js b/app/main.js index 94af98b..6ffeb94 100644 --- a/app/main.js +++ b/app/main.js @@ -302,7 +302,7 @@ dev.all = async function (devices) { if (mcopy.settings.camera.intval) { c.intval = mcopy.settings.camera.intval await delay(1000) - awaitcam.connectIntval(null, { connect : true, url : c.intval }) + await cam.connectIntval(null, { connect : true, url : c.intval }) } if (!dev.connected.light) { @@ -427,7 +427,7 @@ proj.set = async function (dir, id) { cmd = mcopy.cfg.arduino.cmd.proj_backward } proj.state.dir = dir - if (proj.digital) { + if (proj.state.digital) { dig.set(dir) } else { try { @@ -470,6 +470,8 @@ proj.listen = function () { } catch (err) { console.error(err) } + } else if (typeof arg.val !== 'undefined') { + dig.state.frame = arg.val } event.returnValue = true })