From 64c8c8899240b4df2dcd74edf32da8d260e452e4 Mon Sep 17 00:00:00 2001 From: kylehase Date: Mon, 22 Mar 2021 12:50:26 +0900 Subject: [PATCH] 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 0cacb2161dfd..0da3891719c5 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