diff options
author | root <root@avtech.domain.avtechpulse.com> | 1999-12-31 20:02:49 -0500 |
---|---|---|
committer | root <root@avtech.domain.avtechpulse.com> | 1999-12-31 20:02:49 -0500 |
commit | 99c88db327b4b696718df58b3f0b44bba62a6e37 (patch) | |
tree | 447a9ba54d0365aaf92755f6562b10db0eea88db /menus.c | |
parent | a490c453590225970f1ed1aae418a735c68243bf (diff) |
allow main menu to display PW:EXT
Diffstat (limited to 'menus.c')
-rw-r--r-- | menus.c | 27 |
1 files changed, 21 insertions, 6 deletions
@@ -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) { |