From dfeace50a5e25ce6503b93d6f027659ca13b243f Mon Sep 17 00:00:00 2001 From: TangoCash Date: Sun, 5 Nov 2017 14:25:01 +0100 Subject: [PATCH] armbox: tryfix cec --- libarmbox/video.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libarmbox/video.cpp b/libarmbox/video.cpp index e810efa..8bf87b1 100644 --- a/libarmbox/video.cpp +++ b/libarmbox/video.cpp @@ -994,8 +994,10 @@ void cVideo::SetCECState(bool state) usleep(10000); message.address = 0x0f; /* broadcast */ message.data[0] = CEC_MSG_ACTIVE_SOURCE; - message.data[1] = ((((int)physicalAddress >> 12) & 0xf) << 4) + (((int)physicalAddress >> 8) & 0xf); - message.data[2] = ((((int)physicalAddress >> 4) & 0xf) << 4) + (((int)physicalAddress >> 0) & 0xf); + //message.data[1] = ((((int)physicalAddress >> 12) & 0xf) << 4) + (((int)physicalAddress >> 8) & 0xf); + //message.data[2] = ((((int)physicalAddress >> 4) & 0xf) << 4) + (((int)physicalAddress >> 0) & 0xf); + message.data[1] = physicalAddress[0]; + message.data[2] = physicalAddress[1]; message.length = 3; SendCECMessage(message); }