bug fix: servername interchanged for firmware name

This commit is contained in:
2021-11-19 08:53:07 +01:00
parent 4f76219456
commit 464ebe70f1

View File

@ -2189,7 +2189,7 @@ void Detector::updateFirmwareAndServer(const std::string &sname,
Positions pos) {
LOG(logINFO) << "Updating Firmware and Detector Server (no tftp)...";
LOG(logINFO) << "Updating Detector Server (no tftp)...";
std::vector<char> buffer = readBinaryFile(fname, "Update Detector Server");
std::vector<char> buffer = readBinaryFile(sname, "Update Detector Server");
std::string filename = sls::getFileNameFromFilePath(sname);
pimpl->Parallel(&Module::updateDetectorServer, pos, buffer, filename);
programFPGA(fname, pos);