X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fdevices%2FCECBusDevice.cpp;h=dc9e62076b028bc964108d7085d6bce03a53b3b5;hb=cc60ab1c2549ae876890a6eea6120d7261276f61;hp=c798ded339e365fb1dc2f094fc1e674487144cdd;hpb=e55f3f703996f8c347db3fe2442893163f5523b7;p=deb_libcec.git diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index c798ded..dc9e620 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -216,11 +216,14 @@ void CCECBusDevice::PollVendorId(void) void CCECBusDevice::SetPhysicalAddress(uint16_t iNewAddress, uint16_t iOldAddress /* = 0 */) { - CStdString strLog; - strLog.Format(">> %i changed physical address from %04x to %04x", GetLogicalAddress(), m_iPhysicalAddress, iNewAddress); - AddLog(CEC_LOG_DEBUG, strLog.c_str()); + if (iNewAddress > 0) + { + CStdString strLog; + strLog.Format(">> %i changed physical address from %04x to %04x", GetLogicalAddress(), m_iPhysicalAddress, iNewAddress); + AddLog(CEC_LOG_DEBUG, strLog.c_str()); - m_iPhysicalAddress = iNewAddress; + m_iPhysicalAddress = iNewAddress; + } } bool CCECBusDevice::PowerOn(void)