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>
This commit is contained in:
Arthur Heymans 2017-04-06 14:17:26 +02:00 committed by Martin Roth
parent c0dbdf4c90
commit 2873a4aea4
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ int send_ec_data(uint8_t data)
if ((timeout & 0xff) == 0) if ((timeout & 0xff) == 0)
debug("."); debug(".");
} }
if (timeout) { if (!timeout) {
debug("Timeout while sending data 0x%02x to EC!\n", data); debug("Timeout while sending data 0x%02x to EC!\n", data);
// return -1; // return -1;
} }