diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-16 11:32:25 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-16 11:32:25 -0400 |
commit | 53b0084de1e0b3cdb94fd345a03911f80ebcb784 (patch) | |
tree | b757518dbaf8b3845fb34d6a22cbef00301dd3fa /parser.c | |
parent | 51aec80f5b733b25e0875e22f82537fd31eb4ee4 (diff) |
add function to initialize Flash
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -902,7 +902,7 @@ static int Go_Str_eprom_47(gchar** response, int channel, char *loc_string,char *(char *)(&globals.Flash.flash_start + eprom_loc+i)=store_string[i]; } *(char *)(&globals.Flash.flash_start + eprom_loc + i)=(char) 0; /* end of string */ - writeUserBlock(globals.Flash, eprom_loc, strlen(store_string)+1); + writeUserBlock(eprom_loc, strlen(store_string)+1); return OK; } else { return OutOfRange; @@ -938,7 +938,7 @@ static int Go_int_eprom_48(gchar** response, int channel, char *loc_string,char case command_param_units: the_number=(short) atoi(store_string); *(short *)(&globals.Flash.flash_start + eprom_loc) = the_number; - writeUserBlock(globals.Flash, eprom_loc, sizeof (the_number)); + writeUserBlock(eprom_loc, sizeof (the_number)); return OK; break; @@ -972,7 +972,7 @@ static int Go_Float_eprom51(gchar** response, int channel, char *loc_string,char case command_param_units: the_number=atof(store_string); *(float *)(&globals.Flash.flash_start + eprom_loc)=the_number; - writeUserBlock(globals.Flash, eprom_loc, sizeof(the_number)); + writeUserBlock(eprom_loc, sizeof(the_number)); return OK; break; @@ -1006,7 +1006,7 @@ static int Go_char_eprom_70(gchar** response, int channel, char *loc_string,char case command_param_units: the_number=(char) atoi(store_string); *(char *)(&globals.Flash.flash_start + eprom_loc)=the_number; - writeUserBlock(globals.Flash, eprom_loc, sizeof(the_number)); + writeUserBlock(eprom_loc, sizeof(the_number)); return OK; break; |