This commit is contained in:
2021-09-08 21:15:59 +02:00
parent 8f6344dda0
commit b458b9c517
2 changed files with 5 additions and 1 deletions

View File

@@ -152,8 +152,10 @@ int getDrive(char *mess) {
// mtd2: 002c0000 00020000 "file system(nor)"
// mtd3: 01000000 00010000 "bitfile(spi)"
char cmd[MAX_STR_LENGTH] = {0};
char retvals[MAX_STR_LENGTH] = {0};
if (executeCommand(CMD_GET_FLASH, retvals, logINFO) == FAIL) {
strcpy(retvals, CMD_GET_FLASH);
if (executeCommand(cmd, retvals, logINFO) == FAIL) {
strcpy(mess, "Could not program fpga. (could not get flash drive: ");
strncat(mess, retvals, sizeof(mess) - strlen(mess) - 1);
strcat(mess, "\n");