Explorar el Código

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

Abdullah ibn Nadjo hace 6 años
padre
commit
bcaa7df99b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      src/light.c

+ 2
- 1
src/light.c Ver fichero

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