mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-05 17:07:42 +00:00
Fix possible exception when irreceive is not initialised
Fix possible exception when irreceive is not initialised
This commit is contained in:
parent
56383d3758
commit
e67b27b0a3
@ -118,8 +118,10 @@ unsigned long ir_lasttime = 0;
|
|||||||
|
|
||||||
void IrReceiveUpdateThreshold()
|
void IrReceiveUpdateThreshold()
|
||||||
{
|
{
|
||||||
if (Settings.param[P_IR_UNKNOW_THRESHOLD] < 6) { Settings.param[P_IR_UNKNOW_THRESHOLD] = 6; }
|
if (irrecv != nullptr) {
|
||||||
irrecv->setUnknownThreshold(Settings.param[P_IR_UNKNOW_THRESHOLD]);
|
if (Settings.param[P_IR_UNKNOW_THRESHOLD] < 6) { Settings.param[P_IR_UNKNOW_THRESHOLD] = 6; }
|
||||||
|
irrecv->setUnknownThreshold(Settings.param[P_IR_UNKNOW_THRESHOLD]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void IrReceiveInit(void)
|
void IrReceiveInit(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user