mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-03 07:57:43 +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()
|
||||
{
|
||||
if (Settings.param[P_IR_UNKNOW_THRESHOLD] < 6) { Settings.param[P_IR_UNKNOW_THRESHOLD] = 6; }
|
||||
irrecv->setUnknownThreshold(Settings.param[P_IR_UNKNOW_THRESHOLD]);
|
||||
if (irrecv != nullptr) {
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user