From 464ebe70f1fb90bc72594d3bf7c5b8f3d04a6245 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Fri, 19 Nov 2021 08:53:07 +0100 Subject: [PATCH] bug fix: servername interchanged for firmware name --- slsDetectorSoftware/src/Detector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slsDetectorSoftware/src/Detector.cpp b/slsDetectorSoftware/src/Detector.cpp index b124dd23b..3ad9108cb 100644 --- a/slsDetectorSoftware/src/Detector.cpp +++ b/slsDetectorSoftware/src/Detector.cpp @@ -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 buffer = readBinaryFile(fname, "Update Detector Server"); + std::vector buffer = readBinaryFile(sname, "Update Detector Server"); std::string filename = sls::getFileNameFromFilePath(sname); pimpl->Parallel(&Module::updateDetectorServer, pos, buffer, filename); programFPGA(fname, pos);