using const for getupdatemode

This commit is contained in:
2021-11-22 15:08:58 +01:00
parent e37725ac12
commit 7772eb153d
4 changed files with 6 additions and 4 deletions

View File

@@ -2568,7 +2568,9 @@ void Module::rebootController() {
<< "): Controller rebooted successfully!";
}
bool Module::getUpdateMode() { return sendToDetector<int>(F_GET_UPDATE_MODE); }
bool Module::getUpdateMode() const {
return sendToDetector<int>(F_GET_UPDATE_MODE);
}
void Module::setUpdateMode(const bool updatemode) {
sendToDetector(F_SET_UPDATE_MODE, static_cast<int>(updatemode), nullptr);