Fix Sharp and DISH IR protocol bit lengths
sendSharp is called by sendSharp(address, command), not (data, bits). However, we can call sendSharpRaw(data, bits). The DISH IR protocol appears to have 16 bits of data.
This commit is contained in:
1 parent
8b310eb6e6
commit
5badae32ee
1 file changed
+2
-2
@@ -271,9 +271,9 @@ void receivingMQTT(String topicNameRec, String callbackstring) {
|
||||
if (topicNameRec == subjectMQTTtoIRSony)
|
||||
irsend.sendSony(data, 12);
|
||||
if (topicNameRec == subjectMQTTtoIRDISH)
|
||||
irsend.sendDISH(data, 36); // Note: data (unsigned long) is only 32bits long on the ESP8266.
|
||||
irsend.sendDISH(data, 16);
|
||||
if (topicNameRec == subjectMQTTtoIRSharp)
|
||||
irsend.sendSharp(data, 36); // Note: data (unsigned long) is only 32bits long on the ESP8266.
|
||||
irsend.sendSharpRaw(data, 15);
|
||||
/*
|
||||
Panasonic has a two arguments per call. An address(16bit) and data(32bit), not data and nr_bits.
|
||||
if (topicNameRec == subjectMQTTtoIRPanasonic)
|
||||
|
||||
Reference in new issue
Block a user