1
0
Fork 0

Update alarm.js

master
frigis1 2022-05-15 04:51:58 -07:00 committed by GitHub
parent 687eaaab4b
commit 6992c6f2f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ function showAlarm(alarm) {
if (!alarm.rp) alarm.on = false;
}
//reset timer value
alarm.timer = alarm.data;
alarm.timer = alarm.data.ot;
// alarm is still a member of 'alarms', so writing to array writes changes back directly
require("sched").setAlarms(alarms);
load();
@ -74,4 +74,4 @@ if (active.length) {
} else {
// otherwise just go back to default app
setTimeout(load, 100);
}
}