Fix Kobo resume in new hardware abstraction.

This commit is contained in:
Frans de Jonge
2014-11-06 10:33:48 +01:00
parent 4053e37387
commit 011c5b6544

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