Merge pull request #14759 from s-hadinger/ir_update_tolerance

IR update tolerance after update
This commit is contained in:
s-hadinger 2022-02-07 14:06:48 +01:00 committed by GitHub
commit 93a3ee010a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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"));

View File

@ -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
}