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 }