mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-07 10:30:41 +02:00
wip
This commit is contained in:
parent
f3744a10c6
commit
c5826e905b
@ -1279,6 +1279,9 @@ std::vector<char> DetectorImpl::readProgrammingFile(const std::string &fname) {
|
|||||||
"Program FPGA: Could not open source file for programming: " +
|
"Program FPGA: Could not open source file for programming: " +
|
||||||
fname);
|
fname);
|
||||||
}
|
}
|
||||||
|
if (fseek(src, 0, SEEK_END) != 0) {
|
||||||
|
throw RuntimeError("Program FPGA: Seek error in src file");
|
||||||
|
}
|
||||||
size_t srcSize = ftell(src);
|
size_t srcSize = ftell(src);
|
||||||
if (srcSize <= 0) {
|
if (srcSize <= 0) {
|
||||||
throw RuntimeError("Program FPGA: Could not get length of source file");
|
throw RuntimeError("Program FPGA: Could not get length of source file");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user