summaryrefslogtreecommitdiff
path: root/menus.c
diff options
context:
space:
mode:
Diffstat (limited to 'menus.c')
-rw-r--r--menus.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/menus.c b/menus.c
index 9ca3cd9..574e8c5 100644
--- a/menus.c
+++ b/menus.c
@@ -869,7 +869,7 @@ void Show_Main_Menu(void)
}
menu_string = g_string_append (menu_string, ":");
- if (globals.ChannelState[chan].inverted==pol_norm) {
+ if (globals.ChannelState[chan].inverted==NO) {
menu_string = g_string_append (menu_string, "NO");
} else {
menu_string = g_string_append (menu_string, "YES");
@@ -1776,13 +1776,13 @@ static void Submenu_Display(int change_selection)
break;
case mode_inv_no:
mode_name = g_strdup("NO (normal)");
- if (globals.ChannelState[channel].inverted==pol_norm) {
+ if (globals.ChannelState[channel].inverted==NO) {
current_operating_mode=i;
}
break;
case mode_inv_yes:
mode_name = g_strdup("YES (inverted)");
- if (globals.ChannelState[channel].inverted==pol_complement) {
+ if (globals.ChannelState[channel].inverted==YES) {
current_operating_mode=i;
}
break;
@@ -3156,12 +3156,12 @@ static int Submenu_Implement_Changes(void)
GPIB_go_to_local();
break;
case mode_inv_no:
- if (error_num=Set_Inverted(channel,pol_norm)) {
+ if (error_num=Set_Inverted(channel,NO)) {
return error_num;
}
break;
case mode_inv_yes:
- if (error_num=Set_Inverted(channel,pol_complement)) {
+ if (error_num=Set_Inverted(channel,YES)) {
return error_num;
}
break;