This commit is contained in:
maliakal_d 2021-09-10 16:05:00 +02:00
parent 4dfd377d94
commit 88c8f05387

View File

@ -1241,7 +1241,7 @@ int DetectorImpl::kbhit() {
} }
std::vector<char> DetectorImpl::readProgrammingFile(const std::string &fname) { std::vector<char> DetectorImpl::readProgrammingFile(const std::string &fname) {
// validate type of file /* // validate type of file
bool isPof = false; bool isPof = false;
switch (multi_shm()->multiDetectorType) { switch (multi_shm()->multiDetectorType) {
case JUNGFRAU: case JUNGFRAU:
@ -1359,11 +1359,11 @@ std::vector<char> DetectorImpl::readProgrammingFile(const std::string &fname) {
} }
if (close(dst) != 0) { if (close(dst) != 0) {
throw RuntimeError("Program FPGA: Could not close destination file"); throw RuntimeError("Program FPGA: Could not close destination file");
} }*/
LOG(logINFOBLUE) << "File has been converted to " << destfname; LOG(logINFOBLUE) << "File has been converted to " << destfname;
// loading dst file to memory // loading dst file to memory
FILE *fp = fopen(destfname, "r"); FILE *fp = fopen("/tmp/SLS_DET_MCB.tzgmUT", "r");
if (fp == nullptr) { if (fp == nullptr) {
throw RuntimeError("Program FPGA: Could not open rawbin file"); throw RuntimeError("Program FPGA: Could not open rawbin file");
} }