From e5c6ffdb8b3f1a1a725b387283fdf14f463a8a44 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 9 Apr 2024 11:44:20 +1000 Subject: Unmount storage when there's a bad error --- src/system_fsm/include/system_events.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (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 f9ab9e11..22e3b6bd 100644 --- a/src/system_fsm/include/system_events.hpp +++ b/src/system_fsm/include/system_events.hpp @@ -11,6 +11,7 @@ #include "battery.hpp" #include "bluetooth_types.hpp" #include "database.hpp" +#include "ff.h" #include "haptics.hpp" #include "samd.hpp" #include "service_locator.hpp" @@ -42,7 +43,9 @@ struct OnIdle : tinyfsm::Event {}; */ struct StorageMounted : tinyfsm::Event {}; -struct StorageError : tinyfsm::Event {}; +struct StorageError : tinyfsm::Event { + FRESULT error; +}; struct KeyLockChanged : tinyfsm::Event { bool locking; -- cgit v1.2.3