@ -387,7 +387,7 @@ local KoboIo = Kobo:new{
} ,
} ,
}
}
function Kobo : _refresh ChargingLED( )
function Kobo : setup ChargingLED( )
if G_reader_settings : nilOrTrue ( " enable_charging_led " ) then
if G_reader_settings : nilOrTrue ( " enable_charging_led " ) then
if self : hasAuxBattery ( ) and self.powerd : isAuxBatteryConnected ( ) then
if self : hasAuxBattery ( ) and self.powerd : isAuxBatteryConnected ( ) then
self : toggleChargingLED ( self.powerd : isAuxCharging ( ) )
self : toggleChargingLED ( self.powerd : isAuxCharging ( ) )
@ -512,7 +512,7 @@ function Kobo:init()
-- We have no way of querying the current state of the charging LED, so, start from scratch.
-- We have no way of querying the current state of the charging LED, so, start from scratch.
-- Much like Nickel, start by turning it off.
-- Much like Nickel, start by turning it off.
self : toggleChargingLED ( false )
self : toggleChargingLED ( false )
self : _refresh ChargingLED( )
self : setup ChargingLED( )
-- Only enable a single core on startup
-- Only enable a single core on startup
self : enableCPUCores ( 1 )
self : enableCPUCores ( 1 )
@ -888,7 +888,7 @@ function Kobo:resume()
end
end
-- A full suspend may have toggled the LED off.
-- A full suspend may have toggled the LED off.
self : _refresh ChargingLED( )
self : setup ChargingLED( )
end
end
function Kobo : saveSettings ( )
function Kobo : saveSettings ( )