aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-compliance/cec-compliance.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-12-19 09:26:33 +0100
committerHans Verkuil <hans.verkuil@cisco.com>2016-12-19 09:26:33 +0100
commit0a197fab5fb7c323a518cd5e978b7f516835dbee (patch)
tree3183d0586df1856029b2b6250122b8ac6189be45 /utils/cec-compliance/cec-compliance.h
parent6da6dcaa3de67be6ddeec2245bab0afa1c772afd (diff)
cec-ctl/cec-compliance: the transmit time for a byte is 24 ms, not 25
The time it takes for a byte to be transmitted on the CEC bus is 24 ms, not 25. Update the response time calculations accordingly. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils/cec-compliance/cec-compliance.h')
-rw-r--r--utils/cec-compliance/cec-compliance.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/cec-compliance/cec-compliance.h b/utils/cec-compliance/cec-compliance.h
index 132bfba6..31449b46 100644
--- a/utils/cec-compliance/cec-compliance.h
+++ b/utils/cec-compliance/cec-compliance.h
@@ -337,8 +337,8 @@ static inline unsigned response_time_ms(const struct cec_msg *msg)
// Compensate for the time it took (approx.) to receive the
// message.
- if (ms >= msg->len * 25)
- return ms - msg->len * 25;
+ if (ms >= msg->len * 24)
+ return ms - msg->len * 24;
return 0;
}

Privacy Policy