From fc4b180aa8231ce6c74a3dbad5f1607d858aae00 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Wed, 17 Jan 2018 17:20:48 -0500 Subject: [PATCH] Fix logging in delayed state retreival for ble connections. --- app/www/static/js/intval.mobile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/www/static/js/intval.mobile.js b/app/www/static/js/intval.mobile.js index c610fd2..aff777c 100644 --- a/app/www/static/js/intval.mobile.js +++ b/app/www/static/js/intval.mobile.js @@ -170,13 +170,14 @@ mobile.frame = function () { mobile.frameSuccess = function () { - console.log('Frame finished, getting state.'); if (STATE.exposure < 5000) { + console.log('Frame finished, getting state.'); mobile.ble.active = false; document.getElementById('frame').classList.remove('focus'); mobile.getState(); } else { setTimeout(() => { + console.log('Frame finished, getting state.'); mobile.ble.active = false; document.getElementById('frame').classList.remove('focus'); mobile.getState();