default getModehelper for ControllerBase

This commit is contained in:
Ulrich Mohr 2022-08-26 11:53:46 +02:00
parent f5adcd0625
commit 1dfb3323f7
2 changed files with 7 additions and 0 deletions

View File

@ -99,6 +99,10 @@ ReturnValue_t ControllerBase::performOperation(uint8_t opCode) {
return RETURN_OK;
}
const ModeHelper * ControllerBase::getModeHelper() const {
return &modeHelper;
}
void ControllerBase::modeChanged(Mode_t mode, Submode_t submode) { return; }
ReturnValue_t ControllerBase::setHealth(HealthState health) {

View File

@ -40,6 +40,9 @@ class ControllerBase : public HasModesIF,
virtual void setTaskIF(PeriodicTaskIF *task) override;
virtual ReturnValue_t initializeAfterTaskCreation() override;
/** HasModeIF override */
const ModeHelper * getModeHelper() const override;
protected:
/**
* Implemented by child class. Handle command messages which are not