mirror of
https://github.com/esphome/esphome.git
synced 2026-03-02 02:38:22 -07:00
Merge branch 'update_rp2040_arduino_pico_5_5_0' into integration
This commit is contained in:
@@ -24,8 +24,11 @@ static bool s_sta_had_ip = false; // NOLINT(cppcoreguidelines-avoid-non-
|
||||
static size_t s_scan_result_count = 0; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
|
||||
|
||||
bool WiFiComponent::wifi_mode_(optional<bool> sta, optional<bool> ap) {
|
||||
// STA mode is enabled by WiFi.beginNoBlock() via cyw43_arch_enable_sta_mode(),
|
||||
// so we don't need to call cyw43_wifi_set_up() directly for STA.
|
||||
if (sta.has_value()) {
|
||||
if (sta.value()) {
|
||||
cyw43_wifi_set_up(&cyw43_state, CYW43_ITF_STA, true, CYW43_COUNTRY_WORLDWIDE);
|
||||
}
|
||||
}
|
||||
|
||||
bool ap_state = false;
|
||||
if (ap.has_value()) {
|
||||
|
||||
Reference in New Issue
Block a user