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);
|
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
|
} else {
|
||||||
LOG(logERROR, ("fail\n"));
|
LOG(logERROR, ("failllllllllllllll\n"));
|
||||||
|
}
|
||||||
Server_SendResult(file_des, INT32, NULL, 0);
|
Server_SendResult(file_des, INT32, NULL, 0);
|
||||||
if (ret == FAIL) {
|
if (ret == FAIL) {
|
||||||
if (fd != NULL) {
|
if (fd != NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user