]> sigrok.org Git - libsigrok.git/blobdiff - hardware/brymen-dmm/protocol.c
brymen-dmm: Make protocol parser locale-independent.
[libsigrok.git] / hardware / brymen-dmm / protocol.c
index 4c33076afa1a6ea6d64834dd671e1505c6e6b648..97c582365ed120c2849b48c0198332ab66e85e70 100644 (file)
@@ -31,7 +31,8 @@ static void handle_packet(const uint8_t *buf, struct sr_dev_inst *sdi)
        analog.num_samples = 1;
        analog.mq = -1;
 
-       sr_brymen_parse(buf, &floatval, &analog, NULL);
+       if (brymen_parse(buf, &floatval, &analog, NULL) != SR_OK)
+               return;
        analog.data = &floatval;
 
        analog.probes = sdi->probes;