change to new function call

This commit is contained in:
none 2020-09-17 09:55:24 +02:00 committed by rjkm
parent 97a88de738
commit 8e39e291a0
1 changed files with 2 additions and 1 deletions

View File

@ -72,6 +72,7 @@ int sure()
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
char ddbname[80]; char ddbname[80];
char *flashname;
int type = 0; int type = 0;
struct ddb_id ddbid; struct ddb_id ddbid;
uint8_t *buffer; uint8_t *buffer;
@ -147,7 +148,7 @@ int main(int argc, char **argv)
printf("Could not open device\n"); printf("Could not open device\n");
return -1; return -1;
} }
Flash = flashdetect(ddb, &SectorSize, &FlashSize); Flash = flashdetect(ddb, &SectorSize, &FlashSize, &flashname);
get_ddid(ddb, &ddbid); get_ddid(ddb, &ddbid);
#if 0 #if 0