@@ -140,14 +140,14 @@ function KindlePowerD:setIntensityHW(intensity)
140140 -- NOTE: when intensity is 0, we want to *really* kill the light, so do it manually
141141 -- (asking lipc to set it to 0 would in fact set it to > 0 on ! canTurnFrontlightOff Kindles).
142142 -- We do *both* to make the fl restore on resume less jarring on devices where lipc 0 != off.
143- for _ , fl_intensity_file in self .fl_intensity_files do
143+ for _ , fl_intensity_file in ipairs ( self .fl_intensity_files ) do
144144 ffiUtil .writeToSysfs (intensity , fl_intensity_file )
145145 end
146146
147147 -- And in case there are two LED groups...
148148 -- This should never happen as all warmth devices so far canTurnFrontlightOff
149149 if self .warmth_intensity_files then
150- for _ , warmth_intensity_file in self .warmth_intensity_files do
150+ for _ , warmth_intensity_file in ipairs ( self .warmth_intensity_files ) do
151151 ffiUtil .writeToSysfs (intensity , warmth_intensity_file )
152152 end
153153 end
@@ -234,7 +234,9 @@ function KindlePowerD:onToggleHallSensor(toggle)
234234end
235235
236236function KindlePowerD :_readFLIntensity ()
237- return self :read_int_file (self .fl_intensity_files [1 ])
237+ for _ , fl_intensity_file in ipairs (self .fl_intensity_files ) do
238+ return self :read_int_file (fl_intensity_file )
239+ end
238240end
239241
240242function KindlePowerD :toggleSuspend ()
0 commit comments