From 9e13e0fb96030e3ab61d9ab7f79578c10e064ec5 Mon Sep 17 00:00:00 2001 From: mmcw-dev Date: Thu, 21 Dec 2017 00:03:32 -0500 Subject: [PATCH] Log state to see why there are false positives --- app/www/static/js/intval.core.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/www/static/js/intval.core.js b/app/www/static/js/intval.core.js index 517a311..ab7fbf7 100644 --- a/app/www/static/js/intval.core.js +++ b/app/www/static/js/intval.core.js @@ -162,12 +162,6 @@ var setState = function (res) { exposure = shutter(STATE.exposure); exposureScale = scaleAuto(STATE.exposure); - if (res.sequence === true) { - STATE.sequence = true; - mobile.ble.active = true; - document.getElementById('seq').classList.add('focus'); - } - document.getElementById('str').value = exposure.str; document.getElementById('scale').value = exposureScale; setExposureScale(); @@ -176,6 +170,13 @@ var setState = function (res) { delayScale = scaleAuto(STATE.delay); document.getElementById('delayScale').value = delayScale; setDelayScale(); + + if (res.sequence == true) { + console.log(res.sequence); + STATE.sequence = true; + mobile.ble.active = true; + document.getElementById('seq').classList.add('focus'); + } }; var appPage = function () { unsetPages();