diff --git a/apps/backlite/boot.js b/apps/backlite/boot.js index cf2f2e5c7..e30110781 100644 --- a/apps/backlite/boot.js +++ b/apps/backlite/boot.js @@ -8,7 +8,6 @@ require("Storage").writeJSON("setting.json", s); -let unlockedWithLongPress = false; const longPressTime=400; //(ms) Bangle.on('lock', function(isLocked) { @@ -18,7 +17,6 @@ Bangle.on('lock', function(isLocked) { // Just unlocked — give a short delay and check if BTN1 is still pressed setTimeout(() => { if (digitalRead(BTN1)) { - unlockedWithLongPress = true; Bangle.setLCDBrightness(0.1); setTimeout(()=>{ Bangle.setLCDBrightness(0);