Allow Kobo to entirely turn off the front light.

This commit is contained in:
Hzj_jie
2017-06-20 23:57:18 -07:00
committed by GitHub
parent d83de47204
commit 05769872c7

View File

@@ -43,6 +43,8 @@ function KoboPowerD:frontlightIntensityHW()
return 20
end
function BasePowerD:turnOffFrontlightHW() self:_setIntensity(0) end
function KoboPowerD:setIntensityHW(intensity)
if self.fl == nil then return end
self.fl:setBrightness(intensity)