From bfcdda26252d5f7cc8dc2d8db53f88ed808d0512 Mon Sep 17 00:00:00 2001 From: Amar Mahmutbegovic Date: Sat, 11 Jan 2025 18:51:55 +0100 Subject: [PATCH] use etl::vector --- Chapter17/fsm/app/src/main_fsm_state_pattern.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Chapter17/fsm/app/src/main_fsm_state_pattern.cpp b/Chapter17/fsm/app/src/main_fsm_state_pattern.cpp index aa64523..bf4044e 100644 --- a/Chapter17/fsm/app/src/main_fsm_state_pattern.cpp +++ b/Chapter17/fsm/app/src/main_fsm_state_pattern.cpp @@ -40,6 +40,7 @@ public: } return get_state_enum(); } + ble_state get_state_enum() { return ble_state::idle; } @@ -61,6 +62,7 @@ public: } return get_state_enum(); } + ble_state get_state_enum() { return ble_state::advertising; } @@ -79,6 +81,7 @@ public: } return get_state_enum(); } + ble_state get_state_enum() { return ble_state::connected; } @@ -105,7 +108,7 @@ public: } private: - std::vector states_; + etl::vector states_; ble_state current_state_ = ble_state::idle; state* get_the_state(ble_state state_enum) {