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)
This commit is contained in:
NiLuJe
2021-03-07 21:56:52 +01:00
parent 48b0f2242c
commit fba0b8eec7
2 changed files with 5 additions and 1 deletions

2
base

Submodule base updated: db20367b43...3727ef33c9

View File

@@ -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