Parcourir la source

Don't try to read brightness values when only targetting max bright.

Abdullah ibn Nadjo il y a 6 ans
Parent
révision
bcaa7df99b
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2
    1
      src/light.c

+ 2
- 1
src/light.c Voir le fichier

@@ -338,7 +338,8 @@ LIGHT_BOOL light_initExecution(unsigned long *rawCurr, unsigned long *rawMax, LI
338 338
   }
339 339
 
340 340
   /* No need to go further if targetting mincap */
341
-  if(light_Configuration.field == LIGHT_MIN_CAP)
341
+  if(light_Configuration.field == LIGHT_MIN_CAP ||
342
+     light_Configuration.field == LIGHT_MAX_BRIGHTNESS)
342 343
   {
343 344
     return TRUE;
344 345
   }