comparison loadtools/flutil.c @ 205:cd12d1049f91

fc-loadtool: flash ID check moved into flash info, added to erase and program
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 23 Dec 2013 18:40:04 +0000
parents 61c7480b3c50
children f027c6fbe37e
comparison
equal deleted inserted replaced
204:61c7480b3c50 205:cd12d1049f91
200 if (fail) 200 if (fail)
201 return(-1); 201 return(-1);
202 bi->idcheck_done = 1; 202 bi->idcheck_done = 1;
203 return(0); 203 return(0);
204 } 204 }
205
206 flashcmd_idcheck(argc, argv, bank)
207 char **argv;
208 {
209 struct flash_bank_info *bi;
210
211 if (argc > 2) {
212 fprintf(stderr, "error: too many arguments\n");
213 return(-1);
214 }
215 return flash_id_check(bank, 1);
216 }