]> sigrok.org Git - libsigrok.git/blobdiff - src/dmm/asycii.c
serial: introduce more general "have serial comm" feature flag
[libsigrok.git] / src / dmm / asycii.c
index 1bb80861e6d989da91ad48f71b730dcaef55330d..b34ec70b235caeff8b75723d7ac2f59b11b0514c 100644 (file)
@@ -446,7 +446,7 @@ static gboolean flags_valid(const struct asycii_info *info)
        return TRUE;
 }
 
-#ifdef HAVE_LIBSERIALPORT
+#ifdef HAVE_SERIAL_COMM
 /**
  * Arrange for the reception of another measurement from the DMM.
  *
@@ -519,7 +519,7 @@ SR_PRIV int sr_asycii_parse(const uint8_t *buf, float *floatval,
        int ret, exponent;
        struct asycii_info *info_local;
 
-       info_local = (struct asycii_info *)info;
+       info_local = info;
 
        /* Don't print byte 15. That one contains the carriage return. */
        sr_dbg("DMM packet: \"%.15s\"", buf);