Skip to content

Commit

Permalink
Fix GPIOViewer on ESP32 (needs upcoming core change)
Browse files Browse the repository at this point in the history
  • Loading branch information
arendst committed Aug 26, 2024
1 parent f0c12b6 commit 9696118
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasmota/tasmota_xdrv_driver/xdrv_121_gpioviewer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9696118

Please sign in to comment.