This commit is contained in:
maliakal_d 2021-09-03 15:48:36 +02:00
parent 5811ef0a11
commit bb6abe4e93

View File

@ -1349,6 +1349,9 @@ std::vector<char> DetectorImpl::readProgrammingFile(const std::string &fname) {
throw RuntimeError(
"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) {
throw RuntimeError("Program FPGA: Could not close source file");