diff options
author | Rong Chang <rongchang@chromium.org> | 2012-04-30 18:59:28 +0800 |
---|---|---|
committer | Rong Chang <rongchang@chromium.org> | 2012-04-30 19:01:07 +0800 |
commit | a017e303614101dbd4da26ed18eee6e5c3b597c6 (patch) | |
tree | ae0324cefdc281e9121001a769f82cd7abfc4368 /util | |
parent | 91f7a143d60bf1b25a4fd0b83651d585af55f436 (diff) | |
download | chrome-ec-a017e303614101dbd4da26ed18eee6e5c3b597c6.tar.gz |
Fix ectool battery command printable character detection
Signed-off-by: Rong Chang <rongchang@chromium.org>
BUG=chrome-os-partner:9152
TEST=manual
Change-Id: Ic6d78aaec55d9a357b5c265f303cac3f44505fad
Diffstat (limited to 'util')
-rw-r--r-- | util/ectool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/ectool.c b/util/ectool.c index bf4b20a030..d90db5dee5 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -267,7 +267,7 @@ int read_mapped_string(uint8_t offset, char *buf) int is_string_printable(const char *buf) { while (*buf) { - if (isprint(*buf)) + if (!isprint(*buf)) return 0; buf++; } |