]> sigrok.org Git - libsigrok.git/blobdiff - hardware/mic-985xx/protocol.c
Add Rigol DS1052E/1102E VID:PID
[libsigrok.git] / hardware / mic-985xx / protocol.c
index 828a91cc24084a7f02e17b63a0564cfcc2cd747e..5f2825e65b740103d56e101f052cb4fa85497704 100644 (file)
@@ -108,6 +108,9 @@ static int handle_packet(const uint8_t *buf, struct sr_dev_inst *sdi, int idx)
                return SR_ERR;
        }
 
+       /* Clear 'analog', otherwise it'll contain random garbage. */
+       memset(&analog, 0, sizeof(struct sr_datafeed_analog));
+
        /* Common values for both probes. */
        packet.type = SR_DF_ANALOG;
        packet.payload = &analog;