diff --git a/src/fsfw/devicehandlers/DeviceHandlerIF.h b/src/fsfw/devicehandlers/DeviceHandlerIF.h index 5e1fdd2f..acdb561c 100644 --- a/src/fsfw/devicehandlers/DeviceHandlerIF.h +++ b/src/fsfw/devicehandlers/DeviceHandlerIF.h @@ -85,6 +85,7 @@ class DeviceHandlerIF { static const ReturnValue_t NO_REPLY_EXPECTED = MAKE_RETURN_CODE(0xA8); static const ReturnValue_t NON_OP_TEMPERATURE = MAKE_RETURN_CODE(0xA9); static const ReturnValue_t COMMAND_NOT_IMPLEMENTED = MAKE_RETURN_CODE(0xAA); + static const ReturnValue_t NON_OP_STATE_OF_CHARGE = MAKE_RETURN_CODE(0xAB); // Standard codes used in scanForReply static const ReturnValue_t CHECKSUM_ERROR = MAKE_RETURN_CODE(0xB0); diff --git a/src/fsfw/power/PowerSwitcherComponent.h b/src/fsfw/power/PowerSwitcherComponent.h index 8c74e76f..f0aac2ee 100644 --- a/src/fsfw/power/PowerSwitcherComponent.h +++ b/src/fsfw/power/PowerSwitcherComponent.h @@ -38,6 +38,8 @@ class PowerSwitcherComponent : public SystemObject, protected: PowerSwitcher switcher; + ReturnValue_t checkModeCommand(Mode_t mode, Submode_t submode, + uint32_t *msToReachTheMode) override; private: MessageQueueIF *queue = nullptr; @@ -56,8 +58,6 @@ class PowerSwitcherComponent : public SystemObject, [[nodiscard]] MessageQueueId_t getCommandQueue() const override; void getMode(Mode_t *mode, Submode_t *submode) override; - ReturnValue_t checkModeCommand(Mode_t mode, Submode_t submode, - uint32_t *msToReachTheMode) override; void startTransition(Mode_t mode, Submode_t submode) override; virtual void performFaultyOperation(); void setToExternalControl() override;