Kobo: Refresh the system clock on resume.

Mimics Nickel's behavior, should fix #7092

Thanks to @gtalusan for the pointers ;).

Bump base

(https://github.com/koreader/koreader-base/pull/1322)
reviewable/pr7398/r1
NiLuJe 3 years ago
parent 48b0f2242c
commit fba0b8eec7

@ -1 +1 @@
Subproject commit db20367b4320b16eda10010ce64da59074ea8fd3
Subproject commit 3727ef33c92b8a94dc64873c6305726699207ad8

@ -3,6 +3,7 @@ local NickelConf = require("device/kobo/nickel_conf")
local PluginShare = require("pluginshare")
local SysfsLight = require ("device/sysfs_light")
local ffiUtil = require("ffi/util")
local RTC = require("ffi/rtc")
local batt_state_folder =
"/sys/devices/platform/pmic_battery.1/power_supply/mc13892_bat/"
@ -405,6 +406,9 @@ function KoboPowerD:afterResume()
end
-- Turn the frontlight back on
self:turnOnFrontlight()
-- Set the system clock to the hardware clock's time.
RTC:HCToSys()
end
return KoboPowerD

Loading…
Cancel
Save