X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fnorma-dmm%2Fprotocol.c;h=39924176d484c4ddab04f126a4d245c8dba888c0;hb=713a3f352496f928b9911bfdc7e87a67134113df;hp=96a47379417392ae559e153cd5064ced93b37da2;hpb=7dcaddd3f0df3a87dae252eb1f64f7b0e3997b8f;p=libsigrok.git diff --git a/src/hardware/norma-dmm/protocol.c b/src/hardware/norma-dmm/protocol.c index 96a47379..39924176 100644 --- a/src/hardware/norma-dmm/protocol.c +++ b/src/hardware/norma-dmm/protocol.c @@ -17,11 +17,6 @@ * along with this program. If not, see . */ -/** @file - * Norma DM9x0/Siemens B102x DMMs driver. - * @internal - */ - #include #include "protocol.h" @@ -350,13 +345,13 @@ static void nma_process_line(const struct sr_dev_inst *sdi) /* 4: Flags. Evaluating this after setting value! */ flags = xgittoint(devc->buf[4]); if (flags & 0x04) /* Invalid value */ - value = NAN; + value = NAN; else if (flags & 0x01) /* Overload */ - value = INFINITY; + value = INFINITY; if (flags & 0x02) { /* Duplicate value, has been sent before. */ - sr_spew("Duplicate value, dismissing!"); - devc->buflen = 0; - return; + sr_spew("Duplicate value, dismissing!"); + devc->buflen = 0; + return; } sr_spew("range=%d/scale=%f/value=%f", range, @@ -414,7 +409,7 @@ SR_PRIV int norma_dmm_receive_data(int fd, int revents, void *cb_data) } if (sr_sw_limits_check(&devc->limits)) { - sdi->driver->dev_acquisition_stop(sdi); + sr_dev_acquisition_stop(sdi); } else { /* Request next package. */ if (devc->last_req_pending) {