mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 23:30:03 +02:00
wip
This commit is contained in:
parent
c6af0d34fb
commit
0eb57b99d2
@ -3798,6 +3798,20 @@ 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)) {
|
||||||
|
sprintf(
|
||||||
|
mess,
|
||||||
|
"Could not program fpga. (could not delete old file: %s)",
|
||||||
|
retvals);
|
||||||
|
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