Skip to content

Commit 929bc08

Browse files
authored
Merge pull request #78 from sandeepmistry/wifi-end-ap-status
Reset status to idle if WiFi.end() is called in AP mode
2 parents 5c40b32 + 645b496 commit 929bc08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/WiFi.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,8 @@ void WiFiClass::end()
525525
{
526526
if (_mode == WL_AP_MODE) {
527527
m2m_wifi_disable_ap();
528+
529+
_status = WL_IDLE_STATUS;
528530
} else {
529531
if (_mode == WL_PROV_MODE) {
530532
m2m_wifi_stop_provision_mode();

0 commit comments

Comments
 (0)