From 618b2dac261abc09d871a51a437c8ecfeee450f8 Mon Sep 17 00:00:00 2001 From: RKBoss6 Date: Thu, 10 Jul 2025 21:24:30 -0400 Subject: [PATCH] Update boot.js --- apps/backlite/boot.js | 2 -- 1 file changed, 2 deletions(-) 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);