summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-23 09:38:50 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-23 09:38:50 -0400
commitc60acb22860c4ac69855f84bf77d9e0dd3f7c17a (patch)
treea73e9a1b9edfc0c3469cc00aa9adfa57ef90c725 /parser.c
parent8bc46aed19c0e984b241e18c61ea0a528db5348a (diff)
implement flash suspend
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/parser.c b/parser.c
index f92ca2f..9356d10 100644
--- a/parser.c
+++ b/parser.c
@@ -1261,7 +1261,6 @@ static int Go_Float_eprom51(gchar** response, int channel, char *loc_string,char
the_number=atof(store_string);
*(float *)(&globals.Flash.flash_start + eprom_loc)=the_number;
writeUserBlock(&globals.Flash, eprom_loc, sizeof(the_number));
-
return OK;
break;
@@ -3084,10 +3083,7 @@ static int Go_mon_step_74(gchar** response, int channel, char *parameter,char *u
globals.Flash.monitor_step[channel]=mon_val;
eprom_loc = (char *) &(globals.Flash.monitor_step) - (char *) &(globals.Flash.flash_start);
- if (!globals.flash_writes_suspended) {
- writeUserBlock(eprom_loc,&globals.Flash.flash_start + eprom_loc,sizeof(globals.Flash.monitor_step));
- }
-
+ writeUserBlock(eprom_loc,&globals.Flash.flash_start + eprom_loc,sizeof(globals.Flash.monitor_step));
break;
case query_simple:
@@ -3718,6 +3714,10 @@ static int Go_eprom_sus_93(gchar** response, int channel, char *parameter,int co
return OK;
break;
+ case query_simple:
+ return query_int (response, globals.flash_writes_suspended);
+ break;
+
default:
return SyntaxError;
break;