mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-26 22:33:24 +00:00
Increase esp32c3 stability over wifi (#5774)
* Increase esp32c3 stability over wifi * only apply the fix on esp32c3 based nodes
This commit is contained in:
parent
cdcbf4c615
commit
353740623f
@ -143,6 +143,11 @@ static int32_t reconnectWiFi()
|
||||
delay(5000);
|
||||
|
||||
if (!WiFi.isConnected()) {
|
||||
#ifdef CONFIG_IDF_TARGET_ESP32C3
|
||||
WiFi.mode(WIFI_MODE_NULL);
|
||||
WiFi.useStaticBuffers(true);
|
||||
WiFi.mode(WIFI_STA);
|
||||
#endif
|
||||
WiFi.begin(wifiName, wifiPsw);
|
||||
}
|
||||
isReconnecting = false;
|
||||
|
Loading…
Reference in New Issue
Block a user