diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2017-04-06 14:17:26 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-04-25 18:44:46 +0200 |
commit | 2873a4aea4d27f49e5dc7014b1153a9985048d29 (patch) | |
tree | 1ec8c6a53d9dbe677b37d33dc579e28ca052ca3d /util | |
parent | c0dbdf4c90b22b9ced22563b4c0de58a2b763c93 (diff) |
util/ectool: Fix timeout on sending EC command
When setting output to verbose, it incorrectly reports that it times
out on every command.
TESTED on Thinkpad X60.
Change-Id: I24f05f0c165462d5ba2604c7e2fe139400683275
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/19151
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Alexander Couzens <lynxis@fe80.eu>
Diffstat (limited to 'util')
-rw-r--r-- | util/ectool/ec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/ectool/ec.c b/util/ectool/ec.c index 08b6b1b37d..53a53605f6 100644 --- a/util/ectool/ec.c +++ b/util/ectool/ec.c @@ -70,7 +70,7 @@ int send_ec_data(uint8_t data) if ((timeout & 0xff) == 0) debug("."); } - if (timeout) { + if (!timeout) { debug("Timeout while sending data 0x%02x to EC!\n", data); // return -1; } |