X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2Fradio.c;h=f7551fcf4ba3b8b59df03f8ecb3bfe22a4120e19;hb=f2aefc890708722aed0866c46e152ea8a13d40ee;hp=296bb40b992ed95c8b722af6e06da70811ba27ba;hpb=67fc54773e1504698e80c9cb83977bde32665350;p=ap-utils.git diff --git a/lib/radio.c b/lib/radio.c index 296bb40..f7551fc 100644 --- a/lib/radio.c +++ b/lib/radio.c @@ -22,7 +22,6 @@ #include #include #include "ap-utils.h" -#include "ap-curses.h" #define RADIO_HELP _("[key] - power level; UIOP or LR - antenna; W - write config; Q - quit to menu") @@ -109,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; } @@ -118,7 +117,7 @@ void power() memcpy(power, varbinds[0].value, 14); antenna_vlen = varbinds[1].len_val; - print_title(_("Radio Configuration")); + print_top(NULL, _("Radio Configuration")); mvwaddstr(main_sub, 0, 1, _("Output RF signal power level (CR31 register values)")); mvwaddstr(main_sub, 1, 1, "---------------------------------------------------"); mvwaddstr(main_sub, 2, 1, _("Key Channel Level")); @@ -300,6 +299,8 @@ void power() print_helperr(ERR_SET); goto exit; } + wbkgd(main_sub, A_NORMAL); + wrefresh(main_sub); break; default: continue; @@ -311,6 +312,7 @@ void power() exit: getch(); quit: - print_title(""); + print_top(NULL, NULL); clear_main(0); } +