Log state to see why there are false positives

This commit is contained in:
mmcw-dev 2017-12-21 00:03:32 -05:00
parent 782bf04714
commit 9e13e0fb96
1 changed files with 7 additions and 6 deletions

View File

@ -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();