Browse Source

Fix save and restore arguments

Without this patch -O and -I are not supported anymore and lead to an
error.
eyenseo 6 years ago
parent
commit
6eb9418685
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");