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) {