Update crsclock.js

master
spycat111 2025-06-14 15:44:32 +02:00 committed by GitHub
parent cdaea15658
commit dfde5c8ffb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -610,7 +610,7 @@ function calibrateBT() {
Bangle.setUI(uiOpts); Bangle.setUI(uiOpts);
}); });
})(d); })(d);
m["" + d + "h"] = (() => () => { m["-" + d + "h"] = (() => () => {
S.phaseOffset -= d; S.phaseOffset -= d;
saveSettings(); saveSettings();
E.showAlert("Offset now: " + (S.phaseOffset>=0? "+"+S.phaseOffset : S.phaseOffset) + "h").then(() => { E.showAlert("Offset now: " + (S.phaseOffset>=0? "+"+S.phaseOffset : S.phaseOffset) + "h").then(() => {
@ -711,7 +711,7 @@ function setBioTimeReference() {
E.showMenu(m); E.showMenu(m);
function promptRefTime() { function promptRefTime() {
E.showPrompt("Hour (023)?").then(h => { E.showPrompt("Hour (0-23)?").then(h => {
if (h===undefined || h<0 || h>23) { if (h===undefined || h<0 || h>23) {
E.showAlert("Invalid hour").then(() => { E.showAlert("Invalid hour").then(() => {
drawClock(); drawClock();
@ -720,7 +720,7 @@ function setBioTimeReference() {
return; return;
} }
S.bioTimeRefHour = h; S.bioTimeRefHour = h;
E.showPrompt("Minute (059)?").then(m => { E.showPrompt("Minute (0-59)?").then(m => {
if (m===undefined || m<0 || m>59) { if (m===undefined || m<0 || m>59) {
E.showAlert("Invalid minute").then(() => { E.showAlert("Invalid minute").then(() => {
drawClock(); drawClock();