This commit is contained in:
maliakal_d 2021-09-03 17:52:12 +02:00
parent 99153b4dc2
commit b019b70697

View File

@ -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) {