mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-23 22:37:16 +00:00
Merge pull request #14759 from s-hadinger/ir_update_tolerance
IR update tolerance after update
This commit is contained in:
commit
93a3ee010a
@ -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"));
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user