mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-25 07:40:03 +02:00
wip
This commit is contained in:
parent
22df4a8d5e
commit
5bdc28215e
@ -3725,8 +3725,9 @@ int program_fpga(int file_des) {
|
|||||||
return printSocketReadError();
|
return printSocketReadError();
|
||||||
LOG(logINFOBLUE, ("Program size is: %lld\n",
|
LOG(logINFOBLUE, ("Program size is: %lld\n",
|
||||||
(long long unsigned int)filesize));
|
(long long unsigned int)filesize));
|
||||||
fpgasrc = malloc(filesize + 1);
|
fpgasrc = malloc(MAX_FPGAPROGRAMSIZE);
|
||||||
uint64_t totalsize = filesize + 1;
|
//fpgasrc = malloc(filesize + 1);
|
||||||
|
uint64_t totalsize = filesize;
|
||||||
|
|
||||||
// writing to flash part by part
|
// writing to flash part by part
|
||||||
int clientSocketCrash = 0;
|
int clientSocketCrash = 0;
|
||||||
@ -3780,9 +3781,9 @@ int program_fpga(int file_des) {
|
|||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ret != FAIL) {
|
/* if (ret != FAIL) {
|
||||||
fpgasrc[totalsize] = '\0';
|
fpgasrc[totalsize] = '\0';
|
||||||
}
|
}*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user