turn on frontlight switch on Tolino. (#6586)

This commit is contained in:
zwim
2020-08-29 16:42:57 +02:00
committed by GitHub
parent 20a96fe854
commit 24af0810d2

View File

@@ -75,6 +75,9 @@ function AndroidPowerD:turnOnFrontlightHW()
if self:isFrontlightOn() and self:isFrontlightOnHW() then
return
end
-- on devices with a software frontlight switch (e.g Tolinos), enable it
android.enableFrontlightSwitch()
android.setScreenBrightness(math.floor(self.fl_intensity * self.bright_diff / self.fl_max))
self.is_fl_on = true