aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-12-16 14:48:15 +0100
committerHans Verkuil <hans.verkuil@cisco.com>2016-12-16 14:48:15 +0100
commit64bd806b13c07cae66cd41432891f730cfa37d35 (patch)
tree3697ed55fbf0a38995e1fcf13a8fbb39157d9a4c
parent1f14c77dbfa004385256e043ccc6d2f5ded4fec5 (diff)
cec-follower: double the time_to_transient/stable values
These values where very short, which can cause race conditions where the compliance test missed the intermediate power status values (I think). It certainly doesn't hurt to wait longer before transitioning states. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--utils/cec-follower/cec-processing.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/cec-follower/cec-processing.cpp b/utils/cec-follower/cec-processing.cpp
index 7a64666a..4cbca765 100644
--- a/utils/cec-follower/cec-processing.cpp
+++ b/utils/cec-follower/cec-processing.cpp
@@ -317,8 +317,8 @@ static void processMsg(struct node *node, struct cec_msg &msg, unsigned me)
__u8 from = cec_msg_initiator(&msg);
bool is_bcast = cec_msg_is_broadcast(&msg);
__u16 remote_pa = (from < 15) ? node->remote_phys_addr[from] : CEC_PHYS_ADDR_INVALID;
- const time_t time_to_transient = 2;
- const time_t time_to_stable = 4;
+ const time_t time_to_transient = 4;
+ const time_t time_to_stable = 8;
switch (msg.msg[1]) {

Privacy Policy