mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user