]> git.decadent.org.uk Git - ap-utils.git/blobdiff - lib/radio.c
Merge commit 'upstream/1.5'
[ap-utils.git] / lib / radio.c
index d96137e46df3d4b1f2a28999f1cefada8c22c2d8..f7551fcf4ba3b8b59df03f8ecb3bfe22a4120e19 100644 (file)
@@ -108,7 +108,7 @@ void power()
     varbinds[1].type = NULL_VALUE;
 
     print_help(WAIT_RET);
-    if (snmp(varbinds, 2, GET) <= 0) {
+    if (snmp(varbinds, 2, GET) < 2) {
        print_helperr(ERR_RET);
        goto exit;
     }
@@ -299,6 +299,8 @@ void power()
                print_helperr(ERR_SET);
                goto exit;
            }
+           wbkgd(main_sub, A_NORMAL);
+           wrefresh(main_sub);
            break;
        default:
            continue;