mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Use getCapacityHW() to ensure latest battery capacity can be retrieved
This commit is contained in:
@@ -18,7 +18,7 @@ function State:new(o)
|
||||
setmetatable(o, self)
|
||||
self.__index = self
|
||||
if o.percentage == nil or o.timestamp == nil then
|
||||
o.percentage = PowerD:getCapacity()
|
||||
o.percentage = PowerD:getCapacityHW()
|
||||
o.timestamp = os.time()
|
||||
end
|
||||
return o
|
||||
|
||||
Reference in New Issue
Block a user