fastreset:(partly) fix accidental load of launcher

pull/3067/head
thyttan 2023-10-31 01:20:02 +01:00
parent e8e6136443
commit 901d06a0ae
3 changed files with 6 additions and 3 deletions

View File

@ -1,2 +1,5 @@
0.01: New App! 0.01: New App!
0.02: Shorten the timeout before executing to 250 ms. 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.

View File

@ -1,5 +1,5 @@
{let buzzTimeout; {let buzzTimeout;
setWatch((e)=>{ 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);}, if (!e.state && buzzTimeout) clearTimeout(buzzTimeout);},
BTN,{repeat:true, edge:'both' });} BTN,{repeat:true,edge:'both'});}

View File

@ -1,7 +1,7 @@
{ "id": "fastreset", { "id": "fastreset",
"name": "Fast Reset", "name": "Fast Reset",
"shortName":"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.", "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", "icon": "app.png",
"type": "bootloader", "type": "bootloader",