diff options
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 36 |
1 files changed, 18 insertions, 18 deletions
@@ -347,8 +347,8 @@ static int Parser_id_word(char *id_me, int *channel, int *with_id_code) id_code = 106; } else if (!strcmp(id_me,"all") ) { id_code = 107; - } else if (!strcmp(id_me,"reset") || !strcmp(id_me,"res")) { - id_code = 108; + } else if (!strcmp(id_me,"reset") || !strcmp(id_me,"res")) { + id_code = 108; } else { id_code = 9999; } @@ -1047,9 +1047,9 @@ void Parser_main (char *raw_in, int interactive_terminal, void(*cbfunc)(gpointer case 101: error_num=Go_cal_interval_101(&response,channel,parameter,units,command_type); break; - case 102: - error_num=Go_eprom_reset_102(&response,channel,parameter,units,command_type); - break; + case 102: + error_num=Go_eprom_reset_102(&response,channel,parameter,units,command_type); + break; case 9999: // was only whitespace, ignore @@ -3724,24 +3724,24 @@ static int Go_eprom_reset_102(gchar** response, int channel, char *parameter,cha { int status, value; - if (channel) { - return InvalidChannel; - } + if (channel) { + return InvalidChannel; + } - switch (command_type) { - case command_withparam: + switch (command_type) { + case command_withparam: if (status = process_int_range (parameter, &value, 0, sizeof(globals.Flash)-1)) { - return status; - } + return status; + } initFlash(&globals.Flash, TRUE, value); Main_Rst(); - return OK; - break; + return OK; + break; - default: - return SyntaxError; - break; - } + default: + return SyntaxError; + break; + } } |