From 011c5b6544064d4723a4f67bfb9929a155b60d39 Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Thu, 6 Nov 2014 10:33:48 +0100 Subject: [PATCH] Fix Kobo resume in new hardware abstraction. --- frontend/device/kobo/device.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/device/kobo/device.lua b/frontend/device/kobo/device.lua index 924ccb169..1495f0948 100644 --- a/frontend/device/kobo/device.lua +++ b/frontend/device/kobo/device.lua @@ -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