mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[Kobo] Always set the warmth on the KA1 (#5468)
It might be possible to instead only set the white led, but I don't have the hardware to test that theory, se, eh. Fix #5465 (probably.)
This commit is contained in:
@@ -232,7 +232,13 @@ end
|
||||
|
||||
function KoboPowerD:setIntensityHW(intensity)
|
||||
if self.fl == nil then return end
|
||||
self.fl:setBrightness(intensity)
|
||||
if self.fl_warmth == nil or self.device:hasNaturalLightMixer() then
|
||||
-- We either don't have NL, or we have a mixer: we only want to set the intensity (c.f., #5429)
|
||||
self.fl:setBrightness(intensity)
|
||||
else
|
||||
-- Not having a mixer sucks, we always have to set intensity combined w/ warmth (#5465)
|
||||
self.fl:setNaturalBrightness(intensity, self.fl_warmth)
|
||||
end
|
||||
self.hw_intensity = intensity
|
||||
-- Now that we have set intensity, we need to let BasePowerD
|
||||
-- know about possibly changed frontlight state (if we came
|
||||
|
||||
Reference in New Issue
Block a user