X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fbrymen-dmm%2Fprotocol.c;h=97c582365ed120c2849b48c0198332ab66e85e70;hb=933e63a13bcedc7d4a003605449e54241e25f4eb;hp=4c33076afa1a6ea6d64834dd671e1505c6e6b648;hpb=fe9d5abefcebb3a382d990e069d93c28e9541e35;p=libsigrok.git diff --git a/hardware/brymen-dmm/protocol.c b/hardware/brymen-dmm/protocol.c index 4c33076a..97c58236 100644 --- a/hardware/brymen-dmm/protocol.c +++ b/hardware/brymen-dmm/protocol.c @@ -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;