diff --git a/tasmota/xdrv_05_irremote.ino b/tasmota/xdrv_05_irremote.ino index 72147fa19..7983436d6 100644 --- a/tasmota/xdrv_05_irremote.ino +++ b/tasmota/xdrv_05_irremote.ino @@ -198,6 +198,7 @@ void IrReceiveUpdateThreshold(void) void IrReceiveUpdateTolerance(void) { if (irrecv != nullptr) { + if (Settings->param[P_IR_TOLERANCE] == 0) { Settings->param[P_IR_TOLERANCE] = IR_RCV_TOLERANCE; } if (Settings->param[P_IR_TOLERANCE] > 100) { Settings->param[P_IR_TOLERANCE] = 100; } irrecv->setTolerance(Settings->param[P_IR_TOLERANCE]); } diff --git a/tasmota/xdrv_05_irremote_full.ino b/tasmota/xdrv_05_irremote_full.ino index 9a9703b9f..aa85e82a0 100644 --- a/tasmota/xdrv_05_irremote_full.ino +++ b/tasmota/xdrv_05_irremote_full.ino @@ -196,6 +196,7 @@ void IrReceiveUpdateThreshold(void) void IrReceiveUpdateTolerance(void) { if (irrecv != nullptr) { + if (Settings->param[P_IR_TOLERANCE] == 0) { Settings->param[P_IR_TOLERANCE] = IR_RCV_TOLERANCE; } if (Settings->param[P_IR_TOLERANCE] > 100) { Settings->param[P_IR_TOLERANCE] = 100; } irrecv->setTolerance(Settings->param[P_IR_TOLERANCE]); }