From 155bfea4cdd47c05051befb4da354ef87f913e15 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Mon, 7 Feb 2022 13:51:02 +0100 Subject: [PATCH] IR update tolerance after update --- tasmota/xdrv_05_irremote.ino | 2 +- tasmota/xdrv_05_irremote_full.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/xdrv_05_irremote.ino b/tasmota/xdrv_05_irremote.ino index 7983436d6..6ba461aac 100644 --- a/tasmota/xdrv_05_irremote.ino +++ b/tasmota/xdrv_05_irremote.ino @@ -209,7 +209,7 @@ void IrReceiveInit(void) // an IR led is at GPIO_IRRECV irrecv = new IRrecv(Pin(GPIO_IRRECV), IR_RCV_BUFFER_SIZE, IR_RCV_TIMEOUT, IR_RCV_SAVE_BUFFER); irrecv->setUnknownThreshold(Settings->param[P_IR_UNKNOW_THRESHOLD]); - irrecv->setTolerance(Settings->param[P_IR_TOLERANCE]); + IrReceiveUpdateTolerance(); irrecv->enableIRIn(); // Start the receiver // AddLog(LOG_LEVEL_DEBUG, PSTR("IrReceive initialized")); diff --git a/tasmota/xdrv_05_irremote_full.ino b/tasmota/xdrv_05_irremote_full.ino index aa85e82a0..53e157c86 100644 --- a/tasmota/xdrv_05_irremote_full.ino +++ b/tasmota/xdrv_05_irremote_full.ino @@ -207,7 +207,7 @@ void IrReceiveInit(void) // an IR led is at GPIO_IRRECV irrecv = new IRrecv(Pin(GPIO_IRRECV), IR_FULL_BUFFER_SIZE, IR__FULL_RCV_TIMEOUT, IR_FULL_RCV_SAVE_BUFFER); irrecv->setUnknownThreshold(Settings->param[P_IR_UNKNOW_THRESHOLD]); - irrecv->setTolerance(Settings->param[P_IR_TOLERANCE]); + IrReceiveUpdateTolerance(); irrecv->enableIRIn(); // Start the receiver }