mirror of https://github.com/arendst/Tasmota.git
Berry `web_add_handler` called before `Webserver` is initialized (#21272)
This commit is contained in:
parent
582ca598f0
commit
469492a41a
|
@ -22,6 +22,7 @@ All notable changes to this project will be documented in this file.
|
|||
- LVGL restore `lv_palette` functions
|
||||
- IPv6 support in safeboot
|
||||
- LVGL fix memory allocation of flush buffers
|
||||
- Berry `web_add_handler` called before `Webserver` is initialized
|
||||
|
||||
### Removed
|
||||
- LVGL disabled vector graphics
|
||||
|
|
|
@ -899,7 +899,7 @@ bool Xdrv52(uint32_t function)
|
|||
#ifdef USE_ETHERNET
|
||||
network_up = network_up || EthernetHasIP();
|
||||
#endif
|
||||
if (network_up) { // if network is already up, send a synthetic event to trigger web handlers
|
||||
if (network_up && (Webserver != NULL)) { // if network is already up, send a synthetic event to trigger web handlers
|
||||
callBerryEventDispatcher(PSTR("web_add_handler"), nullptr, 0, nullptr);
|
||||
berry.web_add_handler_done = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue