From 5044169e8da95fbf807622ebe058790e41a2a1a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Mon, 6 Mar 2023 12:47:29 +0100 Subject: [PATCH] fixes #2330 --- src/mqtt/MQTT.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mqtt/MQTT.h b/src/mqtt/MQTT.h index 8b12e2f88..2b38868be 100644 --- a/src/mqtt/MQTT.h +++ b/src/mqtt/MQTT.h @@ -30,12 +30,14 @@ class MQTT : private concurrency::OSThread #if HAS_ETHERNET EthernetClient mqttClient; #endif +#if !defined(DEBUG_HEAP_MQTT) PubSubClient pubSub; - // instead we supress sleep from our runOnce() callback - // CallbackObserver preflightSleepObserver = CallbackObserver(this, &MQTT::preflightSleepCb); - public: +#else + public: + PubSubClient pubSub; +#endif MQTT(); /**