From 901d06a0ae091958cfea8f41604d5edba7237fb3 Mon Sep 17 00:00:00 2001 From: thyttan <6uuxstm66@mozmail.comā©> Date: Tue, 31 Oct 2023 01:20:02 +0100 Subject: [PATCH] fastreset:(partly) fix accidental load of launcher --- apps/fastreset/ChangeLog | 3 +++ apps/fastreset/boot.js | 4 ++-- apps/fastreset/metadata.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/fastreset/ChangeLog b/apps/fastreset/ChangeLog index d777d8c28..eec108328 100644 --- a/apps/fastreset/ChangeLog +++ b/apps/fastreset/ChangeLog @@ -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. diff --git a/apps/fastreset/boot.js b/apps/fastreset/boot.js index c099070e3..5d1fd50b1 100644 --- a/apps/fastreset/boot.js +++ b/apps/fastreset/boot.js @@ -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'});} diff --git a/apps/fastreset/metadata.json b/apps/fastreset/metadata.json index 2d817a91f..455649b48 100644 --- a/apps/fastreset/metadata.json +++ b/apps/fastreset/metadata.json @@ -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",