Fix crash on exit on Kobo devices with no frontlight (#3221)

pull/3222/head
poire-z 7 years ago committed by Frans de Jonge
parent 7c88bad189
commit 0122c086f2

@ -87,6 +87,7 @@ function KoboPowerD:init()
end
function KoboPowerD:saveSettings()
if self.device.hasFrontlight() then
-- Store BasePowerD values into settings (and not our hw_intensity, so
-- that if frontlight was toggled off, we save and restore the previous
-- untoggled intensity and toggle state at next startup)
@ -110,6 +111,7 @@ function KoboPowerD:saveSettings()
NickelConf.frontLightLevel.set(cur_intensity)
end
end
end
end
function KoboPowerD:frontlightIntensityHW()

Loading…
Cancel
Save