From 515da1362a2fe5d6ee79fada69b2bca9e8b8e494 Mon Sep 17 00:00:00 2001 From: 1technophile Date: Thu, 2 Nov 2017 22:20:14 +0100 Subject: [PATCH] add bits definition into IR config #136 --- ZgatewayIR.ino | 2 +- config_IR.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ZgatewayIR.ino b/ZgatewayIR.ino index 98ae7f49..936b54b7 100644 --- a/ZgatewayIR.ino +++ b/ZgatewayIR.ino @@ -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; diff --git a/config_IR.h b/config_IR.h index 292b173b..772daad8 100644 --- a/config_IR.h +++ b/config_IR.h @@ -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