Fredrik Haikarainen 9 years ago
parent
commit
77e89d1d34
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/light.c

+ 4
- 0
src/light.c View File

@@ -436,6 +436,10 @@ LIGHT_BOOL light_execute()
436 436
           writeVal = (light_Configuration.valueMode == LIGHT_RAW) ? &rawSetR : &rawSetP;
437 437
           break;
438 438
         case LIGHT_ADD:
439
+          if(rawCurr == rawAddP && rawAddP != rawMax)
440
+          {
441
+            rawAddP+=1;
442
+          }
439 443
           writeVal = (light_Configuration.valueMode == LIGHT_RAW) ? &rawAddR : &rawAddP;
440 444
           break;
441 445
         case LIGHT_SUB: