correct issue when using a special pulselength or/and a special protocol and the default subject

in this case special protocol and pulselength are not taken into account

https://community.home-assistant.io/t/433mhz-infrared-ir-to-and-from-mqtt-on-esp8266/6779/89?u=1technophile

correct issue when using a special pulselength or/and a special protocol

correct issue when using a special pulselength or/and a special protocol and the default subject

in this case special protocol and pulselength are not taken into account

https://community.home-assistant.io/t/433mhz-infrared-ir-to-and-from-mqtt-on-esp8266/6779/89?u=1technophile
This commit is contained in:
1technophile committed 2017-03-15 21:01:01 +01:00
1 parent 1d2dc7f7e7
commit 77a7cd5d6e
1 file changed
+4 -2
+4 -2
View File
@@ -311,8 +311,10 @@ void receivingMQTT(char * topicOri, char * datacallback) {
mySwitch.send(data, 24);
} else if ((valuePRT != 0) || (valuePLSL != 0)){
trc(F("Sending data by RF, user defined parameters"));
if (valuePLSL != 0) valuePRT = 1;
if (valuePRT != 0) valuePLSL = 350;
if (valuePRT == 0) valuePRT = 1;
if (valuePLSL == 0) valuePLSL = 350;
trc(String(valuePRT));
trc(String(valuePLSL));
mySwitch.setProtocol(valuePRT,valuePLSL);
mySwitch.send(data, 24);
}