summaryrefslogtreecommitdiff
path: root/src/system_fsm/include/system_fsm.hpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-05-22 16:52:50 +1000
committerjacqueline <me@jacqueline.id.au>2023-05-22 16:52:50 +1000
commit82830f995c561567c84b8ea74bc270ae0b488d30 (patch)
tree8e7eeea97b9358156ef33d4650f5676e03b5fbd1 /src/system_fsm/include/system_fsm.hpp
parentda977aaa3feb397c426563da8897d51ebeba8d1f (diff)
downloadtangara-fw-82830f995c561567c84b8ea74bc270ae0b488d30.tar.gz
Fix some logging, add transition to missing storage
Diffstat (limited to 'src/system_fsm/include/system_fsm.hpp')
-rw-r--r--src/system_fsm/include/system_fsm.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/system_fsm/include/system_fsm.hpp b/src/system_fsm/include/system_fsm.hpp
index c537c6de..52c808ba 100644
--- a/src/system_fsm/include/system_fsm.hpp
+++ b/src/system_fsm/include/system_fsm.hpp
@@ -37,6 +37,7 @@ class SystemState : public tinyfsm::Fsm<SystemState> {
virtual void react(const StorageUnmountRequested&) {}
virtual void react(const internal::ReadyToUnmount&) {}
virtual void react(const StorageMounted&) {}
+ virtual void react(const StorageError&) {}
protected:
static std::shared_ptr<drivers::GpioExpander> sGpioExpander;
@@ -74,6 +75,7 @@ class Running : public SystemState {
void react(const StorageUnmountRequested&) override;
void react(const internal::ReadyToUnmount&) override;
+ void react(const StorageError&) override;
using SystemState::react;
};