diff --git a/slsDetectorServers/slsDetectorServer/src/programFpgaBlackfin.c b/slsDetectorServers/slsDetectorServer/src/programFpgaBlackfin.c index bd03bf500..b41d7356c 100644 --- a/slsDetectorServers/slsDetectorServer/src/programFpgaBlackfin.c +++ b/slsDetectorServers/slsDetectorServer/src/programFpgaBlackfin.c @@ -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"); diff --git a/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c b/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c index 859d788ab..f3e519edd 100644 --- a/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c +++ b/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c @@ -470,6 +470,8 @@ int executeCommand(char *command, char *result, enum TLogLevel level) { } else { LOG(level, ("Result:\n[%s]\n", result)); } + } else { + LOG(level, ("No result\n")); } return success; }