From: Lars Op den Kamp Date: Wed, 7 Dec 2011 17:17:46 +0000 (+0100) Subject: cec: set device status to 'present' when a command was received from a device X-Git-Tag: upstream/2.2.0~1^2~44^2~23 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=f4b7b1dc99d0741aa5cbba94a60775ddf1552422;p=deb_libcec.git cec: set device status to 'present' when a command was received from a device --- diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 1793cc4..8b42781 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -84,6 +84,9 @@ bool CCECBusDevice::HandleCommand(const cec_command &command) { CLockObject lock(&m_writeMutex); m_iLastActive = GetTimeMs(); + + if (m_deviceStatus != CEC_DEVICE_STATUS_HANDLED_BY_LIBCEC) + m_deviceStatus = CEC_DEVICE_STATUS_PRESENT; } /* handle the command */