]> sigrok.org Git - libsigrok.git/commitdiff
uni-t-dmm: Quickfix for UNI-T UT61D.
authorUwe Hermann <redacted>
Mon, 21 Jan 2013 00:45:02 +0000 (01:45 +0100)
committerUwe Hermann <redacted>
Mon, 21 Jan 2013 00:45:02 +0000 (01:45 +0100)
This is a temporary fix only, since a major rework of uni-t-dmm is being
done at the moment, soon to be merged.

hardware/uni-t-dmm/protocol.c

index 929ba9ecf6a42a382a2c8bc33d96f81d11a7893a..c953acd5d99ecf563ad1a2f55977eb842a0236a4 100644 (file)
@@ -255,9 +255,11 @@ static int uni_t_dmm_receive_data(int fd, int revents, int dmm, void *cb_data)
                if (data_byte_counter == NUM_DATA_BYTES) {
                        log_dmm_packet(pbuf);
                        data_byte_counter = 0;
-                       if (!sr_fs9721_packet_valid(pbuf)) {
-                               sr_err("Invalid packet.");
-                               return TRUE;
+                       if (dmm == VOLTCRAFT_VC820) {
+                               if (!sr_fs9721_packet_valid(pbuf)) {
+                                       sr_err("Invalid packet.");
+                                       return TRUE;
+                               }
                        }
                        decode_packet(devc, dmm, pbuf);
                        memset(pbuf, 0x00, NUM_DATA_BYTES);