diff --git a/tasmota/xdrv_05_irremote.ino b/tasmota/xdrv_05_irremote.ino index 0cacb2161..fa4831746 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 diff --git a/tasmota/xdrv_05_irremote_full.ino b/tasmota/xdrv_05_irremote_full.ino index 66d0e17d4..00b6cf7bd 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