cec: fixed typo in GetStatus()
authorLars Op den Kamp <lars@opdenkamp.eu>
Fri, 17 Feb 2012 10:55:05 +0000 (11:55 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Fri, 17 Feb 2012 10:55:05 +0000 (11:55 +0100)
src/lib/devices/CECBusDevice.cpp

index 33d472f7acc685f0adadbaf213b51fea867ac06f..8f679c3973f317c319afb94b9726ee2d46b0d70d 100644 (file)
@@ -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;