Skip to content

Commit

Permalink
fastreset:(partly) fix accidental load of launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
thyttan committed Oct 31, 2023
1 parent e8e6136 commit 901d06a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions apps/fastreset/ChangeLog
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.
4 changes: 2 additions & 2 deletions apps/fastreset/boot.js
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'});}
2 changes: 1 addition & 1 deletion apps/fastreset/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ "id": "fastreset",
"name": "Fast Reset",
"shortName":"Fast Reset",
"version":"0.02",
"version":"0.03",
"description": "Reset the watch by pressing the hardware button just a little bit longer than a click. If 'Fastload Utils' is installed this will typically be done with fastloading. A buzz acts as indicator.",
"icon": "app.png",
"type": "bootloader",
Expand Down

0 comments on commit 901d06a

Please sign in to comment.