mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
wip
This commit is contained in:
@ -153,17 +153,6 @@ int startCopyingFPGAProgram(FILE **fd, uint64_t fsize, char *mess) {
|
|||||||
// LOG(logERROR, (mess)); already printed in executecommand
|
// LOG(logERROR, (mess)); already printed in executecommand
|
||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
LOG(logINFO, ("Deleted old file\n"));
|
|
||||||
memset(cmd, 0, MAX_STR_LENGTH);
|
|
||||||
strcpy(cmd, "ls -lrt /va/tmp/*");
|
|
||||||
memset(retvals, 0, MAX_STR_LENGTH);
|
|
||||||
if (FAIL == executeCommand(cmd, retvals, logDEBUG1)) {
|
|
||||||
strcpy(mess, retvals);
|
|
||||||
LOG(logERROR, ("fail\n"));
|
|
||||||
// LOG(logERROR, (mess)); already printed in executecommand
|
|
||||||
return FAIL;
|
|
||||||
}
|
|
||||||
LOG(logINFOBLUE, ("success\n"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// check available memory to copy program
|
// check available memory to copy program
|
||||||
|
@ -3730,15 +3730,12 @@ int program_fpga(int file_des) {
|
|||||||
ret = startCopyingFPGAProgram(&fd, filesize, mess);
|
ret = startCopyingFPGAProgram(&fd, filesize, mess);
|
||||||
char *src = NULL;
|
char *src = NULL;
|
||||||
if (ret == OK) {
|
if (ret == OK) {
|
||||||
LOG(logINFOBLUE, ("successssssssss\n"));
|
|
||||||
src = malloc(MAX_FPGAPROGRAMSIZE);
|
src = malloc(MAX_FPGAPROGRAMSIZE);
|
||||||
if (src == NULL) {
|
if (src == NULL) {
|
||||||
strcpy(mess, "Could not allocate memory to get fpga program\n");
|
strcpy(mess, "Could not allocate memory to get fpga program\n");
|
||||||
LOG(logERROR, (mess));
|
LOG(logERROR, (mess));
|
||||||
ret = FAIL;
|
ret = FAIL;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
LOG(logERROR, ("failllllllllllllll\n"));
|
|
||||||
}
|
}
|
||||||
Server_SendResult(file_des, INT32, NULL, 0);
|
Server_SendResult(file_des, INT32, NULL, 0);
|
||||||
if (ret == FAIL) {
|
if (ret == FAIL) {
|
||||||
|
Reference in New Issue
Block a user