summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-24 14:04:56 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-24 14:04:56 -0400
commitb3c38cf2f99e387359653fc9f9530239c38c381d (patch)
tree781cd5ea77c24a7344bfa4d1d68151c61223143b /parser.c
parent37715d8b1b2a6465f1bb8232df8ae9c73efc743b (diff)
fix writeUserBlock usage, and fix non-obvious rcl values
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/parser.c b/parser.c
index be84e8f..4b64ab3 100644
--- a/parser.c
+++ b/parser.c
@@ -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;
+ }
}