Skip to content

Commit

Permalink
in fast_connect, alternate scanning and connecting
Browse files Browse the repository at this point in the history
  • Loading branch information
KaufHA authored Jun 16, 2022
1 parent d4cc606 commit 980bc37
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions components/wifi/wifi_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,15 @@ void WiFiComponent::loop() {
case WIFI_COMPONENT_STATE_COOLDOWN: {
this->status_set_warning();
if (millis() - this->action_started_ > 5000) {
if (this->fast_connect_ && !this->ap_setup_) {
if (this->fast_connect_ && this->even_number) {
this->even_number = false;
this->start_connecting(this->sta_[0], false);
} else {
}
else {
this->even_number = true;
this->start_scanning();
}

}
break;
}
Expand Down

0 comments on commit 980bc37

Please sign in to comment.