浏览代码

Merge pull request #29 from Eyenseo/master

Fix save and restore arguments
Fredrik Svantesson 6 年前
父节点
当前提交
9a0b7bd63f
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      src/light.c

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

@@ -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");