From 764b01e913d0123747757e5efd3545d46e921848 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Mon, 21 Aug 2023 15:43:23 +1000 Subject: Add idle->standby support when locked and no music --- src/system_fsm/include/system_events.hpp | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'src/system_fsm/include/system_events.hpp') diff --git a/src/system_fsm/include/system_events.hpp b/src/system_fsm/include/system_events.hpp index 87461f0b..f62da801 100644 --- a/src/system_fsm/include/system_events.hpp +++ b/src/system_fsm/include/system_events.hpp @@ -28,15 +28,7 @@ struct BootComplete : tinyfsm::Event {}; */ struct FatalError : tinyfsm::Event {}; -/* - * Sent before unmounting the system storage. Storage will not be unmounted - * until each reaction to this even has returned. FSMs should immediately cease - * their usage of storage. - * - * May be emitted either by UiState in response to user action, or by SysState - * as a part of either entering low-power standby or powering off. - */ -struct StorageUnmountRequested : tinyfsm::Event {}; +struct OnIdle : tinyfsm::Event {}; /* * Sent by SysState when the system storage has been successfully mounted. @@ -64,15 +56,11 @@ struct ChargingStatusChanged : tinyfsm::Event {}; namespace internal { -/* - * Sent when the actual unmount operation should be performed. Always dispatched - * by SysState in response to StoragePrepareToUnmount. - */ -struct ReadyToUnmount : tinyfsm::Event {}; - struct GpioInterrupt : tinyfsm::Event {}; struct SamdInterrupt : tinyfsm::Event {}; +struct IdleTimeout : tinyfsm::Event {}; + } // namespace internal } // namespace system_fsm -- cgit v1.2.3