We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 478afc3 commit 63d96eeCopy full SHA for 63d96ee
main/ZgatewayRF.ino
@@ -37,7 +37,7 @@
37
38
RCSwitch mySwitch = RCSwitch();
39
40
-# ifdef ZmqttDiscovery
+# if defined(ZmqttDiscovery) && !defined(RF_DISABLE_TRANSMIT)
41
void RFtoMQTTdiscovery(SIGNAL_SIZE_UL_ULL MQTTvalue) { //on the fly switch creation from received RF values
42
char val[11];
43
sprintf(val, "%lu", MQTTvalue);
@@ -90,7 +90,7 @@ void RFtoMQTT() {
90
mySwitch.resetAvailable();
91
92
if (!isAduplicateSignal(MQTTvalue) && MQTTvalue != 0) { // conditions to avoid duplications of RF -->MQTT
93
-# ifdef ZmqttDiscovery //component creation for HA
+# if defined(ZmqttDiscovery) && !defined(RF_DISABLE_TRANSMIT) //component creation for HA
94
RFtoMQTTdiscovery(MQTTvalue);
95
# endif
96
pub(subjectRFtoMQTT, RFdata);
0 commit comments