Merge pull request #1093 from Frenzie/master

Fix Kobo resume in new hardware abstraction.
This commit is contained in:
Huang Xin
2014-11-06 17:38:15 +08:00

View File

@@ -119,7 +119,7 @@ function Kobo:Resume()
if self.powerd then
if KOBO_LIGHT_ON_START and tonumber(KOBO_LIGHT_ON_START) > -1 then
self.powerd:setIntensity(math.max(math.min(KOBO_LIGHT_ON_START,100),0))
elseif powerd.fl ~= nil then
elseif self.powerd.fl ~= nil then
self.powerd.fl:restore()
end
end