From: Lars Op den Kamp Date: Fri, 17 Feb 2012 10:55:05 +0000 (+0100) Subject: cec: fixed typo in GetStatus() X-Git-Tag: upstream/2.2.0~1^2~35^2~11 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=7b62b76ed9aa25bfad944140edfde33903a417bb;p=deb_libcec.git cec: fixed typo in GetStatus() --- diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 33d472f..8f679c3 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -470,7 +470,7 @@ cec_bus_device_status CCECBusDevice::GetStatus(bool bForcePoll /* = false */) if (bNeedsPoll) { bool bPollAcked(false); - if (bNeedsPoll || NeedsPoll()) + if (bNeedsPoll && NeedsPoll()) bPollAcked = m_processor->PollDevice(m_iLogicalAddress); status = bPollAcked ? CEC_DEVICE_STATUS_PRESENT : CEC_DEVICE_STATUS_NOT_PRESENT;