moving rebootcontroller in programfpga to detector level to sync all modules

This commit is contained in:
maliakal_d 2021-10-06 14:39:12 +02:00
parent ea77331a4a
commit 6360506924
2 changed files with 1 additions and 7 deletions

View File

@ -2138,6 +2138,7 @@ void Detector::setAdditionalJsonParameter(const std::string &key,
void Detector::programFPGA(const std::string &fname, Positions pos) {
std::vector<char> buffer = pimpl->readProgrammingFile(fname);
pimpl->Parallel(&Module::programFPGA, pos, buffer);
rebootController(pos);
}
void Detector::resetFPGA(Positions pos) {
@ -2160,7 +2161,6 @@ void Detector::updateFirmwareAndServer(const std::string &sname,
Positions pos) {
pimpl->Parallel(&Module::copyDetectorServer, pos, sname, hostname);
programFPGA(fname, pos);
rebootController(pos);
}
Result<uint32_t> Detector::readRegister(uint32_t addr, Positions pos) const {

View File

@ -3499,12 +3499,7 @@ void Module::programFPGAviaBlackfin(std::vector<char> buffer) {
<< " returned error: " << client.readErrorMessage();
throw RuntimeError(os.str());
}
if (moduleIndex == 0) {
LOG(logINFO) << "Copied to flash and checksum verified";
}
LOG(logINFO) << "FPGA programmed successfully";
rebootController();
}
void Module::programFPGAviaNios(std::vector<char> buffer) {
@ -3582,6 +3577,5 @@ void Module::programFPGAviaNios(std::vector<char> buffer) {
throw RuntimeError(os.str());
}
LOG(logINFO) << "FPGA programmed successfully";
rebootController();
}
} // namespace sls