]> sigrok.org Git - libsigrok.git/blobdiff - src/dmm/eev121gw.c
output/csv: use intermediate time_t var, silence compiler warning
[libsigrok.git] / src / dmm / eev121gw.c
index f1a0070ae84fbe4e837949f31ec91be365bdae3c..ac7622078c2dafa55f6d233f6cd2edebb479bd79 100644 (file)
@@ -22,8 +22,6 @@
  *
  * EEVblog 121GW 19-bytes binary protocol parser.
  *
- * @internal
- *
  * Note that this protocol is different from other meters. We need not
  * decode the LCD presentation (segments a-g and dot of seven segment
  * displays). Neither need we decode a textual presentation consisting
@@ -764,6 +762,8 @@ static int sr_eev121gw_parse(const uint8_t *buf, float *floatval,
                ser_mon = FIELD_NL(raw_serial, SERIAL_MONTH);
                ser_nr = FIELD_NL(raw_serial, SERIAL_NUMBER);
                sr_spew("Packet: Y-M %x-%x, nr %x.", ser_year, ser_mon, ser_nr);
+       } else {
+               (void)raw_serial;       /* Silence compiler warning. */
        }
 
        switch (display) {