From 64c8c8899240b4df2dcd74edf32da8d260e452e4 Mon Sep 17 00:00:00 2001 From: kylehase Date: Mon, 22 Mar 2021 12:50:26 +0900 Subject: [PATCH 1/4] Update xdrv_05_irremote.ino Reduce IR_TIME_AVOID_DUPLICATE to 50ms which was fixed in xdrv_05_irremote_full.ino in PR #9969 but not here. Converted IR_TIME_AVOID_DUPLICATE from const to #define to enable override in the config override file. --- tasmota/xdrv_05_irremote.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasmota/xdrv_05_irremote.ino b/tasmota/xdrv_05_irremote.ino index 0cacb2161..0da389171 100644 --- a/tasmota/xdrv_05_irremote.ino +++ b/tasmota/xdrv_05_irremote.ino @@ -176,7 +176,10 @@ void IrSendInit(void) \*********************************************************************************************/ const bool IR_RCV_SAVE_BUFFER = false; // false = do not use buffer, true = use buffer for decoding -const uint32_t IR_TIME_AVOID_DUPLICATE = 500; // Milliseconds + +#ifndef IR_TIME_AVOID_DUPLICATE +#define IR_TIME_AVOID_DUPLICATE = 50 // Milliseconds +#endif // IR_TIME_AVOID_DUPLICATE #include From 60613e504141400405925b0d392ddf141ae3a856 Mon Sep 17 00:00:00 2001 From: kylehase Date: Mon, 22 Mar 2021 13:03:44 +0900 Subject: [PATCH 2/4] Update xdrv_05_irremote_full.ino Convert IR_TIME_AVOID_DUPLICATE from const to #define to enable override in the config override file. --- tasmota/xdrv_05_irremote_full.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasmota/xdrv_05_irremote_full.ino b/tasmota/xdrv_05_irremote_full.ino index 66d0e17d4..b68cc5a87 100644 --- a/tasmota/xdrv_05_irremote_full.ino +++ b/tasmota/xdrv_05_irremote_full.ino @@ -167,7 +167,10 @@ uint64_t reverseBitsInBytes64(uint64_t b) { \*********************************************************************************************/ const bool IR_FULL_RCV_SAVE_BUFFER = false; // false = do not use buffer, true = use buffer for decoding -const uint32_t IR_TIME_AVOID_DUPLICATE = 50; // Milliseconds + +#ifndef IR_TIME_AVOID_DUPLICATE +#define IR_TIME_AVOID_DUPLICATE = 50 // Milliseconds +#endif // IR_TIME_AVOID_DUPLICATE // Below is from IRrecvDumpV2.ino // As this program is a special purpose capture/decoder, let us use a larger From 0614e54363b5beb841cfa2e931ecf1ddb4f48c75 Mon Sep 17 00:00:00 2001 From: kylehase Date: Mon, 22 Mar 2021 13:25:01 +0900 Subject: [PATCH 3/4] Update xdrv_05_irremote_full.ino --- tasmota/xdrv_05_irremote_full.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_05_irremote_full.ino b/tasmota/xdrv_05_irremote_full.ino index b68cc5a87..00b6cf7bd 100644 --- a/tasmota/xdrv_05_irremote_full.ino +++ b/tasmota/xdrv_05_irremote_full.ino @@ -169,7 +169,7 @@ uint64_t reverseBitsInBytes64(uint64_t b) { const bool IR_FULL_RCV_SAVE_BUFFER = false; // false = do not use buffer, true = use buffer for decoding #ifndef IR_TIME_AVOID_DUPLICATE -#define IR_TIME_AVOID_DUPLICATE = 50 // Milliseconds +#define IR_TIME_AVOID_DUPLICATE 50 // Milliseconds #endif // IR_TIME_AVOID_DUPLICATE // Below is from IRrecvDumpV2.ino From a0c6d4f3001fc608afd1a9c1571405d82c3e5d4c Mon Sep 17 00:00:00 2001 From: kylehase Date: Mon, 22 Mar 2021 13:25:33 +0900 Subject: [PATCH 4/4] Update xdrv_05_irremote.ino --- tasmota/xdrv_05_irremote.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_05_irremote.ino b/tasmota/xdrv_05_irremote.ino index 0da389171..fa4831746 100644 --- a/tasmota/xdrv_05_irremote.ino +++ b/tasmota/xdrv_05_irremote.ino @@ -178,7 +178,7 @@ void IrSendInit(void) const bool IR_RCV_SAVE_BUFFER = false; // false = do not use buffer, true = use buffer for decoding #ifndef IR_TIME_AVOID_DUPLICATE -#define IR_TIME_AVOID_DUPLICATE = 50 // Milliseconds +#define IR_TIME_AVOID_DUPLICATE 50 // Milliseconds #endif // IR_TIME_AVOID_DUPLICATE #include