Quellcode durchsuchen

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

Abdullah ibn Nadjo vor 6 Jahren
Ursprung
Commit
bcaa7df99b
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2
    1
      src/light.c

+ 2
- 1
src/light.c Datei anzeigen

@@ -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
   }