strcmp(buf + 9, " mA") does not work because buf is CR-terminated, while " mA" is NUL-terminated. Drop ambiguities arising from the termination of the strings, and only compare the characters we care about, using strncmp(). Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> |
||
---|---|---|
.. | ||
dmm | ||
Makefile.am | ||
ezusb.c | ||
serial.c | ||
usb.c |