From c66fdf1fa601bf4e30c603eccbed9799e5339628 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Fri, 8 Mar 2013 00:38:50 +0100 Subject: [PATCH] rpi: don't set the physical address to 1.0.0.0 when receiving VC_HDMI_UNPLUGGED. it may wake up device when they were just sent to standby. issue #142 --- src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp b/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp index a68c0ec..76c61b3 100644 --- a/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp +++ b/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp @@ -118,17 +118,13 @@ void CRPiCECAdapterCommunication::OnTVServiceCallback(uint32_t reason, uint32_t { switch(reason) { - case VC_HDMI_UNPLUGGED: - { - m_callback->HandlePhysicalAddressChanged(0x1000); - break; - } case VC_HDMI_ATTACHED: { uint16_t iNewAddress = GetPhysicalAddress(); m_callback->HandlePhysicalAddressChanged(iNewAddress); break; } + case VC_HDMI_UNPLUGGED: case VC_HDMI_DVI: case VC_HDMI_HDMI: case VC_HDMI_HDCP_UNAUTH: -- 2.34.1