Skip to content

Commit d9b005f

Browse files
authored
Merge pull request #303 from sebromero/fix-corrupted-state
Clean up AP data after ending it
2 parents 8bf029a + 92279fb commit d9b005f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/WiFi/src/WiFi.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ void arduino::WiFiClass::ensureDefaultAPNetworkConfiguration() {
9999

100100
void arduino::WiFiClass::end() {
101101
disconnect();
102+
_softAP = nullptr;
102103
}
103104

104105
int arduino::WiFiClass::disconnect() {

0 commit comments

Comments
 (0)