X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fnorma-dmm%2Fprotocol.c;h=de31828a706bcdc1f96f5b7155347ee5526ae564;hb=ad466f86cc0497f6a5ba0e2540e399c32c0b96ba;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..de31828a 100644 --- a/src/hardware/norma-dmm/protocol.c +++ b/src/hardware/norma-dmm/protocol.c @@ -17,9 +17,12 @@ * along with this program. If not, see . */ -/** @file - * Norma DM9x0/Siemens B102x DMMs driver. - * @internal +/** + * @file + * + * Norma DM9x0/Siemens B102x DMMs driver. + * + * @internal */ #include @@ -350,13 +353,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,