diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2016-12-19 09:26:33 +0100 |
---|---|---|
committer | Hans Verkuil <hans.verkuil@cisco.com> | 2016-12-19 09:26:33 +0100 |
commit | 0a197fab5fb7c323a518cd5e978b7f516835dbee (patch) | |
tree | 3183d0586df1856029b2b6250122b8ac6189be45 | |
parent | 6da6dcaa3de67be6ddeec2245bab0afa1c772afd (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>
-rw-r--r-- | utils/cec-compliance/cec-compliance.h | 4 | ||||
-rw-r--r-- | utils/cec-ctl/cec-ctl.cpp | 4 |
2 files changed, 4 insertions, 4 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; } diff --git a/utils/cec-ctl/cec-ctl.cpp b/utils/cec-ctl/cec-ctl.cpp index 76b5af1b..15d70184 100644 --- a/utils/cec-ctl/cec-ctl.cpp +++ b/utils/cec-ctl/cec-ctl.cpp @@ -1344,8 +1344,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; } |