Browse Source

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

Abdullah ibn Nadjo 7 years ago
parent
commit
bcaa7df99b
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/light.c

+ 2
- 1
src/light.c View File

338
   }
338
   }
339
 
339
 
340
   /* No need to go further if targetting mincap */
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
     return TRUE;
344
     return TRUE;
344
   }
345
   }