mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-12-31 16:41:18 +01:00
update mode added. need to fix why udpatemode get and set not in allowed functions
This commit is contained in:
@@ -2539,8 +2539,9 @@ void Module::updateDetectorServer(std::vector<char> buffer,
|
||||
"Update Detector Server (no tftp)", serverName);
|
||||
break;
|
||||
default:
|
||||
throw RuntimeError("Updating DetectorServer via the package is not implemented "
|
||||
"for this detector");
|
||||
throw RuntimeError(
|
||||
"Updating DetectorServer via the package is not implemented "
|
||||
"for this detector");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2567,6 +2568,14 @@ void Module::rebootController() {
|
||||
<< "): Controller rebooted successfully!";
|
||||
}
|
||||
|
||||
bool Module::getUpdateMode() { return sendToDetector<int>(F_GET_UPDATE_MODE); }
|
||||
|
||||
void Module::setUpdateMode(const bool updatemode) {
|
||||
sendToDetector(F_SET_UPDATE_MODE, static_cast<int>(updatemode), nullptr);
|
||||
LOG(logINFO) << "Module " << moduleIndex << " (" << shm()->hostname
|
||||
<< "): Update Mode set to " << updatemode << "!";
|
||||
}
|
||||
|
||||
uint32_t Module::readRegister(uint32_t addr) const {
|
||||
return sendToDetectorStop<uint32_t>(F_READ_REGISTER, addr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user