From bc016f2465626e7e102eaccc38383efc73495540 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 6 Apr 2017 14:17:26 +0200 Subject: [PATCH] UPSTREAM: 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. BUG=none BRANCH=none TEST=none Change-Id: Ibff3a5d8b073ab5fb40d5fbfda2137a725574e02 Signed-off-by: Patrick Georgi Original-Commit-Id: 2873a4aea4d27f49e5dc7014b1153a9985048d29 Original-Change-Id: I24f05f0c165462d5ba2604c7e2fe139400683275 Original-Signed-off-by: Arthur Heymans Original-Reviewed-on: https://review.coreboot.org/19151 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Paul Menzel Original-Reviewed-by: Alexander Couzens Reviewed-on: https://chromium-review.googlesource.com/488051 --- util/ectool/ec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }