patch - 2v11 changes + `fullReset` update
parent
9d5ce3ae7d
commit
55e4866efd
|
|
@ -2,3 +2,4 @@
|
|||
0.02 [PATCH] Fixed text alignment issue; Increased acceleration required to activate twist;
|
||||
0.03 [MINOR] Added settings menu to control twist threshold and LCD Activity
|
||||
0.04 [PATCH] Call `Bangle.setUI` when exiting settings menu, settings tap moved to top
|
||||
0.05 [PATCH] Firmware 2v11 - use `wakeOnTwist` rather than manual `setLCDPower`; Reset sonic on `fullReset`
|
||||
|
|
|
|||
|
|
@ -113,6 +113,8 @@ const fullReset = () => {
|
|||
if (drawTimeout) clearTimeout(drawTimeout);
|
||||
if (waitTimeout) clearTimeout(waitTimeout);
|
||||
if (drawInterval) clearInterval(drawInterval);
|
||||
currentSonic = -1;
|
||||
currentSpeed = 0;
|
||||
};
|
||||
|
||||
const start = () => {
|
||||
|
|
@ -148,7 +150,6 @@ const wait = () => {
|
|||
currentSpeed = 0;
|
||||
if (drawTimeout) clearTimeout(drawTimeout);
|
||||
if (drawInterval) clearInterval(drawInterval);
|
||||
Bangle.setLCDPower(1);
|
||||
|
||||
drawInterval = setInterval(() => draw("wait"), timeout);
|
||||
|
||||
|
|
@ -285,6 +286,7 @@ const settingsMenu = {
|
|||
lockTimeout: 10000,
|
||||
backlightTimeout: 12000,
|
||||
twistThreshold: settings.twistThreshold,
|
||||
wakeOnTwist: !settings.activeMode,
|
||||
});
|
||||
|
||||
E.showMenu();
|
||||
|
|
@ -328,6 +330,7 @@ Bangle.setOptions({
|
|||
lockTimeout: 10000,
|
||||
backlightTimeout: 12000,
|
||||
twistThreshold: settings.twistThreshold,
|
||||
wakeOnTwist: !settings.activeMode,
|
||||
});
|
||||
|
||||
Bangle.setUI("clock");
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "sonicclk",
|
||||
"name": "Sonic Clock",
|
||||
"version": "0.04",
|
||||
"version": "0.05",
|
||||
"description": "A classic sonic clock featuring run, stop and wait animations.",
|
||||
"icon": "app.png",
|
||||
"screenshots": [{"url":"screenshot.png"}],
|
||||
|
|
|
|||
Loading…
Reference in New Issue