From 4d7d0b3c5667e54acfd4315a8a9795178e485b2c Mon Sep 17 00:00:00 2001 From: RKBoss6 <178680496+RKBoss6@users.noreply.github.com> Date: Mon, 21 Jul 2025 21:24:11 -0400 Subject: [PATCH] Update boot.js --- apps/backlite/boot.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/backlite/boot.js b/apps/backlite/boot.js index 474252519..c7f613bd4 100644 --- a/apps/backlite/boot.js +++ b/apps/backlite/boot.js @@ -5,10 +5,6 @@ if (!("lcdTimeout" in s)) s.lcdTimeout = 5; // fallback so logic doesn't break require("Storage").writeJSON("setting.json", s); - - - - let unlockedWithLongPress = false; const longPressTime=400; //(ms) Bangle.on('lock', function(isLocked) { @@ -18,7 +14,6 @@ // Just unlocked — give a short delay and check if BTN1 is still pressed setTimeout(() => { if (digitalRead(BTN1)) { - unlockedWithLongPress = true; //set brightness until. locked. Bangle.setLCDBrightness(0.1); @@ -30,3 +25,4 @@ }); } +