mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-02 19:00:05 +02:00
wip
This commit is contained in:
parent
8647717fec
commit
1963439dbf
@ -3799,20 +3799,6 @@ int program_fpga(int file_des) {
|
|||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
|
||||||
char cmd[MAX_STR_LENGTH] = {0};
|
|
||||||
char retvals[MAX_STR_LENGTH] = {0};
|
|
||||||
strcpy(cmd, "ls -lrt /var/tmp/");
|
|
||||||
if (FAIL == executeCommand(cmd, retvals, logDEBUG1)) {
|
|
||||||
strcpy(mess,
|
|
||||||
"Could not program fpga. Could not delete old file: ");
|
|
||||||
strncat(mess, retvals, sizeof(mess) - strlen(mess) - 1);
|
|
||||||
strcat(mess, "\n");
|
|
||||||
LOG(logERROR, (mess));
|
|
||||||
return FAIL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// copy to flash
|
// copy to flash
|
||||||
ret = copyToFlash(checksum, mess);
|
ret = copyToFlash(checksum, mess);
|
||||||
Server_SendResult(file_des, INT32, NULL, 0);
|
Server_SendResult(file_des, INT32, NULL, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user