From 2610f1adfba51f54225067de33854ab49d853ae1 Mon Sep 17 00:00:00 2001 From: lumapu Date: Sun, 22 Jan 2023 01:10:54 +0100 Subject: [PATCH] fix ESP32 compile --- src/publisher/pubMqtt.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/publisher/pubMqtt.h b/src/publisher/pubMqtt.h index 11744ab67..f066a38af 100644 --- a/src/publisher/pubMqtt.h +++ b/src/publisher/pubMqtt.h @@ -175,8 +175,9 @@ class PubMqtt { break; if(!mClient.connected()) break; - + #if defined(ESP8266) mClient.loop(); + #endif yield(); } while(1);