[fix] Android frontlight control

This commit is contained in:
Frans de Jonge
2017-10-03 21:14:38 +02:00
committed by GitHub
parent 7d81aa5cf4
commit bf61e6f093

View File

@@ -11,9 +11,7 @@ function AndroidPowerD:frontlightIntensityHW()
end
function AndroidPowerD:setIntensityHW(intensity)
if self.fl_intensity ~= intensity then
android.setScreenBrightness(math.floor(255 * intensity / self.fl_max))
end
android.setScreenBrightness(math.floor(255 * intensity / self.fl_max))
end
function AndroidPowerD:getCapacityHW()