WakeupMgr: kinde: use a 90 sec proximity

sometimes my kindle fires the rtc alarm a tad too late so use a more generous timeout

the real fix would be to have validateWakeupAlarmByProximity return differently if the alarm is past or in the future, but i am too lazy
reviewable/pr10498/r1
yparitcher 12 months ago
parent eadf76e992
commit 8034858180

@ -227,7 +227,7 @@ function KindlePowerD:checkUnexpectedWakeup()
-- then we were woken by user input not our alarm.
if state ~= "screenSaver" and state ~= "suspended" then return end
if self.device.wakeup_mgr:isWakeupAlarmScheduled() and self.device.wakeup_mgr:wakeupAction() then
if self.device.wakeup_mgr:isWakeupAlarmScheduled() and self.device.wakeup_mgr:wakeupAction(90) then
logger.info("Kindle scheduled wakeup")
else
logger.warn("Kindle unscheduled wakeup")

Loading…
Cancel
Save