diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-02-05 11:02:45 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-02-05 11:03:52 +1100 |
| commit | 299f3cc48f683d3e6dec1efb4957fdb49b4de2c3 (patch) | |
| tree | 6eb0445c300492e53cdc048f12cc6780a12c55eb /src/system_fsm/include/system_fsm.hpp | |
| parent | 811c335c2ac425320a1949ab23378172e86ae60a (diff) | |
| download | tangara-fw-299f3cc48f683d3e6dec1efb4957fdb49b4de2c3.tar.gz | |
Preserve the queue when going into standby
Diffstat (limited to 'src/system_fsm/include/system_fsm.hpp')
| -rw-r--r-- | src/system_fsm/include/system_fsm.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/system_fsm/include/system_fsm.hpp b/src/system_fsm/include/system_fsm.hpp index 5a0ea599..cc60e43b 100644 --- a/src/system_fsm/include/system_fsm.hpp +++ b/src/system_fsm/include/system_fsm.hpp @@ -63,8 +63,9 @@ class SystemState : public tinyfsm::Fsm<SystemState> { virtual void react(const SdDetectChanged&) {} virtual void react(const SamdUsbMscChanged&) {} virtual void react(const database::event::UpdateFinished&) {} - virtual void react(const audio::PlaybackFinished&) {} + virtual void react(const audio::PlaybackStopped&) {} virtual void react(const internal::IdleTimeout&) {} + virtual void react(const internal::UnmountTimeout&) {} protected: auto IdleCondition() -> bool; @@ -100,13 +101,16 @@ class Running : public SystemState { void react(const KeyLockChanged&) override; void react(const SdDetectChanged&) override; - void react(const audio::PlaybackFinished&) override; + void react(const audio::PlaybackStopped&) override; void react(const database::event::UpdateFinished&) override; void react(const SamdUsbMscChanged&) override; + void react(const internal::UnmountTimeout&) override; using SystemState::react; private: + auto checkIdle() -> void; + auto mountStorage() -> bool; auto unmountStorage() -> void; |
