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:
1 parent
1d2dc7f7e7
commit
77a7cd5d6e
1 file changed
+4
-2
+4
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user