mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Allow Kobo to entirely turn off the front light.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user