Browse Source

Merge pull request #29 from Eyenseo/master

Fix save and restore arguments
Fredrik Svantesson 5 years ago
parent
commit
9a0b7bd63f
No account linked to committer's email
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/light.c

+ 2
- 1
src/light.c View File

@@ -37,7 +37,8 @@ LIGHT_BOOL light_checkOperations()
37 37
   switch (light_Configuration.field) {
38 38
   case LIGHT_BRIGHTNESS:
39 39
     if(op != LIGHT_GET && op != LIGHT_SET &&
40
-       op != LIGHT_ADD && op != LIGHT_SUB)
40
+       op != LIGHT_ADD && op != LIGHT_SUB && 
41
+       op != LIGHT_SAVE && op != LIGHT_RESTORE)
41 42
     {
42 43
       valid = FALSE;
43 44
       fprintf(stderr, "Wrong operation specified for brightness. You can use only -G -S -A or -U\n\n");