diff --git a/parts/components/IRSensor.cpp b/parts/components/IRSensor.cpp index e43c9e42..f448b334 100644 --- a/parts/components/IRSensor.cpp +++ b/parts/components/IRSensor.cpp @@ -150,5 +150,9 @@ void IRSensor::Set(IRState val) void IRSensor::Auto_Input(uint32_t val) { - m_bExternal = val>0; + if (IsConnected() && m_bExternal != (val>0)) + { + m_bExternal = val>0; + _SyncDigitalIRQ(GetCurrentValue()); + } }