mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
Put back wifi IPv6 workaround (#21274)
This commit is contained in:
parent
469492a41a
commit
2a35f325b8
@ -23,6 +23,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
- IPv6 support in safeboot
|
- IPv6 support in safeboot
|
||||||
- LVGL fix memory allocation of flush buffers
|
- LVGL fix memory allocation of flush buffers
|
||||||
- Berry `web_add_handler` called before `Webserver` is initialized
|
- Berry `web_add_handler` called before `Webserver` is initialized
|
||||||
|
- Put back wifi IPv6 workaround
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
- LVGL disabled vector graphics
|
- LVGL disabled vector graphics
|
||||||
|
@ -1469,6 +1469,18 @@ void WifiEvents(arduino_event_t *event) {
|
|||||||
IPv6isLocal(addr) ? PSTR("Local") : PSTR("Global"), addr.toString(true).c_str());
|
IPv6isLocal(addr) ? PSTR("Local") : PSTR("Global"), addr.toString(true).c_str());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case ARDUINO_EVENT_WIFI_STA_CONNECTED:
|
||||||
|
// workaround for the race condition in LWIP, see https://github.com/espressif/arduino-esp32/pull/9016#discussion_r1451774885
|
||||||
|
{
|
||||||
|
uint32_t i = 5; // try 5 times only
|
||||||
|
while (esp_netif_create_ip6_linklocal(get_esp_interface_netif(ESP_IF_WIFI_STA)) != ESP_OK) {
|
||||||
|
delay(1);
|
||||||
|
if (i-- == 0) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif // USE_IPV6
|
#endif // USE_IPV6
|
||||||
case ARDUINO_EVENT_WIFI_STA_GOT_IP:
|
case ARDUINO_EVENT_WIFI_STA_GOT_IP:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user