use etl::vector

This commit is contained in:
Amar Mahmutbegovic
2025-01-11 18:51:55 +01:00
parent c2bd4e61bd
commit bfcdda2625

View File

@@ -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<state*> states_;
etl::vector<state*, 3> states_;
ble_state current_state_ = ble_state::idle;
state* get_the_state(ble_state state_enum) {