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.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.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.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 (drawTimeout) clearTimeout(drawTimeout);
|
||||||
if (waitTimeout) clearTimeout(waitTimeout);
|
if (waitTimeout) clearTimeout(waitTimeout);
|
||||||
if (drawInterval) clearInterval(drawInterval);
|
if (drawInterval) clearInterval(drawInterval);
|
||||||
|
currentSonic = -1;
|
||||||
|
currentSpeed = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
const start = () => {
|
const start = () => {
|
||||||
|
|
@ -148,7 +150,6 @@ const wait = () => {
|
||||||
currentSpeed = 0;
|
currentSpeed = 0;
|
||||||
if (drawTimeout) clearTimeout(drawTimeout);
|
if (drawTimeout) clearTimeout(drawTimeout);
|
||||||
if (drawInterval) clearInterval(drawInterval);
|
if (drawInterval) clearInterval(drawInterval);
|
||||||
Bangle.setLCDPower(1);
|
|
||||||
|
|
||||||
drawInterval = setInterval(() => draw("wait"), timeout);
|
drawInterval = setInterval(() => draw("wait"), timeout);
|
||||||
|
|
||||||
|
|
@ -285,6 +286,7 @@ const settingsMenu = {
|
||||||
lockTimeout: 10000,
|
lockTimeout: 10000,
|
||||||
backlightTimeout: 12000,
|
backlightTimeout: 12000,
|
||||||
twistThreshold: settings.twistThreshold,
|
twistThreshold: settings.twistThreshold,
|
||||||
|
wakeOnTwist: !settings.activeMode,
|
||||||
});
|
});
|
||||||
|
|
||||||
E.showMenu();
|
E.showMenu();
|
||||||
|
|
@ -328,6 +330,7 @@ Bangle.setOptions({
|
||||||
lockTimeout: 10000,
|
lockTimeout: 10000,
|
||||||
backlightTimeout: 12000,
|
backlightTimeout: 12000,
|
||||||
twistThreshold: settings.twistThreshold,
|
twistThreshold: settings.twistThreshold,
|
||||||
|
wakeOnTwist: !settings.activeMode,
|
||||||
});
|
});
|
||||||
|
|
||||||
Bangle.setUI("clock");
|
Bangle.setUI("clock");
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "sonicclk",
|
"id": "sonicclk",
|
||||||
"name": "Sonic Clock",
|
"name": "Sonic Clock",
|
||||||
"version": "0.04",
|
"version": "0.05",
|
||||||
"description": "A classic sonic clock featuring run, stop and wait animations.",
|
"description": "A classic sonic clock featuring run, stop and wait animations.",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"screenshots": [{"url":"screenshot.png"}],
|
"screenshots": [{"url":"screenshot.png"}],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue