add bits definition into IR config

#136
This commit is contained in:
1technophile
2017-11-02 22:20:14 +01:00
parent 13d003f8b5
commit 515da1362a
2 changed files with 2 additions and 1 deletions

View File

@@ -247,7 +247,7 @@ void MQTTtoIR(char * topicOri, char * datacallback) {
#endif
#ifdef IR_PANASONIC
if (strstr(topicOri, "IR_PANASONIC") != NULL){
if (valueBITS == 0) valueBITS = 16;
if (valueBITS == 0) valueBITS = PanasonicBits;
if (valueRPT == 0) valueRPT = 2;
irsend.sendPanasonic(PanasonicAddress, data, valueBITS, valueRPT);
signalSent = true;

View File

@@ -40,6 +40,7 @@
#define pubIRunknownPrtcl false // key to avoid mqtt publication of unknown IR protocol (set to true if you want to publish unknown protocol)
#define PanasonicAddress 0x4004 // Panasonic address (Pre data)
#define PanasonicBits 48U // Panasonic nr of bits (Pre data)
#ifdef ESP8266 //IR supported protocols on ESP8266, all supported per default
#define IR_GC