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 <pgeorgi@chromium.org>
Original-Commit-Id: 2873a4aea4
Original-Change-Id: I24f05f0c165462d5ba2604c7e2fe139400683275
Original-Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Original-Reviewed-on: https://review.coreboot.org/19151
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Original-Reviewed-by: Alexander Couzens <lynxis@fe80.eu>
Reviewed-on: https://chromium-review.googlesource.com/488051
This commit is contained in:
Arthur Heymans 2017-04-06 14:17:26 +02:00 committed by chrome-bot
commit bc016f2465

View file

@ -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;
}