mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-20 16:48:01 +02:00
wip
This commit is contained in:
@ -1349,6 +1349,9 @@ std::vector<char> DetectorImpl::readProgrammingFile(const std::string &fname) {
|
|||||||
throw RuntimeError(
|
throw RuntimeError(
|
||||||
"Could not convert programming file. EOF before end of flash");
|
"Could not convert programming file. EOF before end of flash");
|
||||||
}
|
}
|
||||||
|
// write 0 to tthe end
|
||||||
|
char c = '\0';
|
||||||
|
write(dst, &c, 1);
|
||||||
}
|
}
|
||||||
if (fclose(src) != 0) {
|
if (fclose(src) != 0) {
|
||||||
throw RuntimeError("Program FPGA: Could not close source file");
|
throw RuntimeError("Program FPGA: Could not close source file");
|
||||||
|
Reference in New Issue
Block a user