Skip to content

Commit 76fe611

Browse files
committed
skip timer delete, it's automatic.
1 parent 7126db4 commit 76fe611

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/wifi.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,7 @@ static bool has_saved_config = false;
305305
void wifi_shutdown_ap(TimerHandle_t xTimer) {
306306
ESP_LOGI(TAG, "Shutting down config portal");
307307
stop_webserver();
308-
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA));
309-
if (xTimer != NULL) {
310-
xTimerDelete(xTimer, 0);
311-
}
308+
esp_wifi_set_mode(WIFI_MODE_STA);
312309
}
313310

314311
// Shutdown WiFi

0 commit comments

Comments
 (0)