Fix GPIOViewer on ESP32 (needs upcoming core change)

This commit is contained in:
Theo Arends 2024-08-26 15:26:36 +02:00
parent f0c12b6e9c
commit 969611835c

View File

@ -452,7 +452,9 @@ void GVHandleEvents(void) {
GV->WebServer->setContentLength(CONTENT_LENGTH_UNKNOWN); // The payload can go on forever
GV->WebServer->sendContent_P(HTTP_GV_EVENT);
#ifdef ESP32
GVWebClient.setSSE(true);
#endif
GV->sse_ready = true; // Ready for async updates
if (GV->sampling != 100) {
GV->ticker.attach_ms(GV->sampling, GVMonitorTask); // Use Tasmota Scheduler (100) or Ticker (20..99,101..1000)