Does anyone have any ideas as to where to start looking?
Code: Select all
void wifi_stop()
{
telemetry_notify_wifi_disconnected();
webserver_stop();
AP_state = AP_STATE_Off;
STA_state = STA_STATE_Idle;
deinit_mini_dns();
esp_netif_deinit();
esp_wifi_stop();
if (reconnect_timer)
{
xTimerStop(reconnect_timer, (TickType_t)1000 / portTICK_PERIOD_MS);
xTimerReset(reconnect_timer, 1);
}
if (ap_stop_timer)
{
xTimerStop(ap_stop_timer, (TickType_t)1000 / portTICK_PERIOD_MS);
xTimerReset(ap_stop_timer, 1);
}
wifi_state = WIFI_STATE_STOPPED;
led_change_pattern(LED_WIFI_OFF, true);
}