Use getCapacityHW() to ensure latest battery capacity can be retrieved

This commit is contained in:
Hzj_jie
2017-06-24 07:53:20 -07:00
committed by Frans de Jonge
parent 970f2e7306
commit 4ec96e377a

View File

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