-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fastreset:(partly) fix accidental load of launcher
- Loading branch information
thyttan
committed
Oct 31, 2023
1 parent
e8e6136
commit 901d06a
Showing
3 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
0.01: New App! | ||
0.02: Shorten the timeout before executing to 250 ms. | ||
0.03: Add inner timeout of 150 ms so user has more time to release the button | ||
before clock ui is initialized and adds it's button watch for going to | ||
launcher. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{let buzzTimeout; | ||
setWatch((e)=>{ | ||
if (e.state) buzzTimeout = setTimeout(()=>{Bangle.buzz(80,0.40);Bangle.showClock();}, 250); | ||
if (e.state) buzzTimeout = setTimeout(()=>{Bangle.buzz(80,0.40);setTimeout(Bangle.showClock,150);}, 250); | ||
if (!e.state && buzzTimeout) clearTimeout(buzzTimeout);}, | ||
BTN,{repeat:true, edge:'both' });} | ||
BTN,{repeat:true,edge:'both'});} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters