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
This commit is contained in:
Rong Chang
2012-04-30 18:59:28 +08:00
parent 91f7a143d6
commit a017e30361

View File

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