diff options
author | Mike <mjc@avtechpulse.com> | 2000-01-01 00:17:35 +0900 |
---|---|---|
committer | Mike <mjc@avtechpulse.com> | 2000-01-01 00:17:35 +0900 |
commit | bee40b77fc98991b4b6ef33b1e738915bc989ff0 (patch) | |
tree | 7ed45ce42ab76f6600042fe8bb815001f15af699 /parser.c | |
parent | 8dc1f4f10021a55398d6f47621395ce402cdee06 (diff) |
rename "polarity" variables to "inverted" for clarity
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2128,7 +2128,7 @@ static int Go_polarity_42(gchar** response, int channel, char *parameter,char *u { int status; - if (status = check_channel_ok (channel, globals.Flash.channels, globals.Flash.ChanKey_polarity)) { + if (status = check_channel_ok (channel, globals.Flash.channels, globals.Flash.ChanKey_inverted)) { return status; } if (!(globals.Flash.invert_allowed[channel])) { @@ -2138,19 +2138,19 @@ static int Go_polarity_42(gchar** response, int channel, char *parameter,char *u switch (command_type) { case command_withparam: if (!strcmp(parameter,"norm") || !strcmp(parameter,"normal")) { - return Set_Pol(channel,pol_norm); + return Set_Inverted(channel,pol_norm); } else if (!strcmp(parameter,"comp") || !strcmp(parameter,"complement") || !strcmp(parameter,"inv") || !strcmp(parameter,"inverted") ) { - return Set_Pol(channel,pol_complement); + return Set_Inverted(channel,pol_complement); } else { return SyntaxError; } break; case query_simple: - if (globals.ChannelState[channel].polarity==pol_norm) { + if (globals.ChannelState[channel].inverted==pol_norm) { return query_string(response, "NORM"); } else { return query_string(response, "COMP"); |