libsigrok/hardware/common
Alexandru Gagniuc 3ebc9b59a2 metex14: Fix parsing of measurement flags.
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>
2012-12-02 14:21:18 +01:00
..
dmm metex14: Fix parsing of measurement flags. 2012-12-02 14:21:18 +01:00
Makefile.am genericdmm: Factor out USB functions. 2012-11-03 00:02:56 +01:00
ezusb.c sr: moved sigrok.h so libsigrok/libsigrok.h 2012-07-05 01:17:28 +02:00
serial.c serial: Don't hardcode parity and stop bits on Windows. 2012-12-02 14:10:27 +01:00
usb.c genericdmm: Factor out USB functions. 2012-11-03 00:02:56 +01:00