Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apps/crsclock/crsclock.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const STATS_FONT_SIZE = 16;
function getSleepWindowStr() {
let a = ("0"+S.sleepStart).substr(-2) + ":00";
let b = ("0"+S.sleepEnd).substr(-2) + ":00";
return a + "" + b;
return a + "-" + b;
}

function stability(arr, key, hours) {
Expand Down Expand Up @@ -610,7 +610,7 @@ function calibrateBT() {
Bangle.setUI(uiOpts);
});
})(d);
m["" + d + "h"] = (() => () => {
m["-" + d + "h"] = (() => () => {
S.phaseOffset -= d;
saveSettings();
E.showAlert("Offset now: " + (S.phaseOffset>=0? "+"+S.phaseOffset : S.phaseOffset) + "h").then(() => {
Expand Down Expand Up @@ -711,7 +711,7 @@ function setBioTimeReference() {
E.showMenu(m);

function promptRefTime() {
E.showPrompt("Hour (023)?").then(h => {
E.showPrompt("Hour (0-23)?").then(h => {
if (h===undefined || h<0 || h>23) {
E.showAlert("Invalid hour").then(() => {
drawClock();
Expand All @@ -720,7 +720,7 @@ function setBioTimeReference() {
return;
}
S.bioTimeRefHour = h;
E.showPrompt("Minute (059)?").then(m => {
E.showPrompt("Minute (0-59)?").then(m => {
if (m===undefined || m<0 || m>59) {
E.showAlert("Invalid minute").then(() => {
drawClock();
Expand Down