Skip to content

Commit 4e4bcba

Browse files
committed
Merge pull request #106 from oxullo/fixes/105
Add a missing deinit to WiFi.end()
2 parents 150623f + 764286a commit 4e4bcba

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
@@ -579,6 +579,8 @@ void WiFiClass::end()
579579
m2m_periph_gpio_set_val(M2M_PERIPH_GPIO15, 1);
580580
m2m_periph_gpio_set_val(M2M_PERIPH_GPIO4, 1);
581581

582+
socketDeinit();
583+
582584
m2m_wifi_deinit(NULL);
583585

584586
nm_bsp_deinit();

0 commit comments

Comments
 (0)