From 99c88db327b4b696718df58b3f0b44bba62a6e37 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Dec 1999 20:02:49 -0500 Subject: allow main menu to display PW:EXT --- menus.c | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/menus.c b/menus.c index c7a4195..15dbcde 100644 --- a/menus.c +++ b/menus.c @@ -449,7 +449,10 @@ void Show_Main_Menu(void) show_item=Show_No_Number; if (globals.ChannelState[chan].func_mode==pulse_mode_on) { - if (globals.ChannelState[chan].pw_ctrl_mode==pw_normal) { + switch (globals.ChannelState[chan].pw_ctrl_mode) { + + default: + case pw_normal: if (globals.ChannelState[chan].hold_setting==hold_width) { show_item=Show_pw+chan; menu_string = g_string_append (menu_string, "PW"); @@ -465,13 +468,25 @@ void Show_Main_Menu(void) } menu_string = g_string_append (menu_string, ":"); } - } else { + break; + + case pw_in_out: menu_string = g_string_append (menu_string, "PW"); - if (globals.Flash.ChanKey_pw) { - g_string_append_printf (menu_string, "%d", chan+1); - } - menu_string = g_string_append (menu_string, " IN=OUT"); + if (globals.Flash.ChanKey_pw) { + g_string_append_printf (menu_string, "%d", chan+1); + } + menu_string = g_string_append (menu_string, ":IN=OUT"); + break; + + case pw_ew_ext: + menu_string = g_string_append (menu_string, "PW"); + if (globals.Flash.ChanKey_pw) { + g_string_append_printf (menu_string, "%d", chan+1); + } + menu_string = g_string_append (menu_string, ":EXT"); + break; } + } else { menu_string = g_string_append (menu_string, "PW"); if (globals.Flash.ChanKey_pw) { -- cgit