浏览代码

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

Abdullah ibn Nadjo 7 年前
父节点
当前提交
bcaa7df99b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      src/light.c

+ 2
- 1
src/light.c 查看文件

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