[cecd-devel] [PATCH 1/2] [libcec] fix polling message
Status: Beta
Brought to you by:
pbatard
|
From: Florian F. <f.f...@gm...> - 2012-01-05 17:14:02
|
In order to poll a device, both the initiator and the destination address
must be set to the same value, not broadcast (CEC 10.2.1).
---
libcec/libcec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libcec/libcec.c b/libcec/libcec.c
index 5375559..9bcf5c8 100644
--- a/libcec/libcec.c
+++ b/libcec/libcec.c
@@ -243,7 +243,7 @@ int libcec_allocate_logical_address(libcec_device_handle* handle, uint8_t device
if (logical_address_table[logical_address] != device_type) {
continue;
}
- polling_message = 0xF0 | logical_address;
+ polling_message = logical_address << 4 | logical_address;
ceci_dbg("querying logical address %d\n", logical_address);
if (libcec_write_message(handle, &polling_message, 1) != LIBCEC_SUCCESS) {
/* error on polling (no ACK) => assume address is free */
--
1.7.5.4
|