Fix Tuya invalid rule trigger

This commit is contained in:
Theo Arends 2021-04-20 10:03:48 +02:00
parent 7ad9a103be
commit 4d6e015771

View File

@ -1211,7 +1211,7 @@ void TuyaSerialInput(void)
snprintf_P(scommand, sizeof(scommand), PSTR("DpType%uId%u"), dpDataType, dpId); snprintf_P(scommand, sizeof(scommand), PSTR("DpType%uId%u"), dpDataType, dpId);
if (dpDataType != 3 && dpDataType != 5) { Response_P(PSTR("%u"), DataVal); } if (dpDataType != 3 && dpDataType != 5) { Response_P(PSTR("%u"), DataVal); }
else { Response_P(PSTR("%s"), DataStr); } else { Response_P(PSTR("%s"), DataStr); }
MqttPublishPrefixTopicRulesProcess_P(STAT, scommand); MqttPublishPrefixTopic_P(STAT, scommand);
} }
} }