mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
2
base
2
base
Submodule base updated: db20367b43...3727ef33c9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user