mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 08:10:02 +02:00
wip
This commit is contained in:
parent
99153b4dc2
commit
b019b70697
@ -3730,14 +3730,16 @@ int program_fpga(int file_des) {
|
||||
ret = startCopyingFPGAProgram(&fd, filesize, mess);
|
||||
char *src = NULL;
|
||||
if (ret == OK) {
|
||||
LOG(logINFOBLUE, ("successssssssss\n"));
|
||||
src = malloc(MAX_FPGAPROGRAMSIZE);
|
||||
if (src == NULL) {
|
||||
strcpy(mess, "Could not allocate memory to get fpga program\n");
|
||||
LOG(logERROR, (mess));
|
||||
ret = FAIL;
|
||||
}
|
||||
} else
|
||||
LOG(logERROR, ("fail\n"));
|
||||
} else {
|
||||
LOG(logERROR, ("failllllllllllllll\n"));
|
||||
}
|
||||
Server_SendResult(file_des, INT32, NULL, 0);
|
||||
if (ret == FAIL) {
|
||||
if (fd != NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user