mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-02 21:25:03 +00:00
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:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user