mirror of https://github.com/espruino/BangleApps
Merge pull request #3067 from thyttan/fastreset
fastreset:(partly) fix accidental load of launcherpull/3069/head
commit
90ebb4f961
|
@ -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.
|
||||
|
|
|
@ -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'});}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue