From f65cdd831a8a6abe31f2a3ba7f6138289cf5aedb Mon Sep 17 00:00:00 2001 From: Florian <1technophile@users.noreply.github.com> Date: Tue, 9 Jun 2020 21:06:13 -0500 Subject: [PATCH] move scope of MQTTtoONOFF due to build error on Arduino IDE (working with PIO) #556 --- main/main.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/main.ino b/main/main.ino index 92fe1a6..f31e24d 100644 --- a/main/main.ino +++ b/main/main.ino @@ -1377,10 +1377,11 @@ void receivingMQTT(char* topicOri, char* datacallback) { # if defined(ZboardM5STICKC) || defined(ZboardM5STACK) MQTTtoM5(topicOri, jsondata); # endif -#endif -#ifdef ZactuatorONOFF // outside the jsonpublishing macro due to the fact that we need to use simplepublishing with HA discovery +# ifdef ZactuatorONOFF // outside the jsonpublishing macro due to the fact that we need to use simplepublishing with HA discovery MQTTtoONOFF(topicOri, jsondata); +# endif #endif + digitalWrite(led_send, HIGH); MQTTtoSYS(topicOri, jsondata);