Ver código fonte

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

Abdullah ibn Nadjo 6 anos atrás
pai
commit
bcaa7df99b
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2
    1
      src/light.c

+ 2
- 1
src/light.c Ver arquivo

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