diff options
author | Hans Verkuil <hansverk@cisco.com> | 2018-02-27 13:49:16 +0100 |
---|---|---|
committer | Hans Verkuil <hansverk@cisco.com> | 2018-02-27 13:49:16 +0100 |
commit | c969495f2788837134ceda5b7a68bc0d4d10f8d0 (patch) | |
tree | b2e8a8d2b78ef9c1e8d4ce1f58ac27d4402715c0 /utils/cec-follower | |
parent | beec9a8d3c02f695bc541549772ffaacf71c3ab1 (diff) |
cec-ctl: ACK vs NACK was inverted for broadcast msgs
How to interpret the ACK bit depends on whether it was a directed
or broadcast message. But the code has the order wrong:
bool ack = !(bcast ^ bit);
if (byte_cnt == 0) {
bcast = (byte & 0xf) == 0xf;
The 'ack' assignment should be done after the 'bcast =' assignment.
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Diffstat (limited to 'utils/cec-follower')
0 files changed, 0 insertions, 0 deletions