From 2873a4aea4d27f49e5dc7014b1153a9985048d29 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 6 Apr 2017 14:17:26 +0200 Subject: [PATCH] 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 Reviewed-on: https://review.coreboot.org/19151 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Alexander Couzens --- 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; }