mirror of
https://github.com/esphome/esphome.git
synced 2026-08-22 22:26:21 +00:00
[wifi] Keep init_sta and add_sta out of line
This commit is contained in:
@@ -1017,6 +1017,8 @@ void WiFiComponent::set_ap(const WiFiAP &ap) {
|
||||
}
|
||||
#endif // USE_WIFI_AP
|
||||
|
||||
void WiFiComponent::init_sta(size_t count) { this->sta_.init(count); }
|
||||
void WiFiComponent::add_sta(const WiFiAP &ap) { this->sta_.push_back(ap); }
|
||||
void WiFiComponent::clear_sta() {
|
||||
// Clear roaming state - no more configured networks
|
||||
this->clear_roaming_state_();
|
||||
|
||||
@@ -442,8 +442,9 @@ class WiFiComponent final : public Component {
|
||||
void set_sta(const WiFiAP &ap);
|
||||
// Returns a copy of the currently selected AP configuration
|
||||
WiFiAP get_sta() const;
|
||||
void init_sta(size_t count) { this->sta_.init(count); }
|
||||
void add_sta(const WiFiAP &ap) { this->sta_.push_back(ap); }
|
||||
// Kept out of line: inlining these into the generated setup() grows flash
|
||||
void init_sta(size_t count);
|
||||
void add_sta(const WiFiAP &ap);
|
||||
void clear_sta();
|
||||
|
||||
#ifdef USE_WIFI_AP
|
||||
|
||||
Reference in New Issue
Block a user