From bb6abe4e93a6a66fb1092baa6ca5ace0fa0205b3 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Fri, 3 Sep 2021 15:48:36 +0200 Subject: [PATCH] wip --- slsDetectorSoftware/src/DetectorImpl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slsDetectorSoftware/src/DetectorImpl.cpp b/slsDetectorSoftware/src/DetectorImpl.cpp index 67fdb1558..5ae8db8f6 100644 --- a/slsDetectorSoftware/src/DetectorImpl.cpp +++ b/slsDetectorSoftware/src/DetectorImpl.cpp @@ -1349,6 +1349,9 @@ std::vector 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");