From: Uwe Hermann Date: Mon, 21 Jan 2013 00:45:02 +0000 (+0100) Subject: uni-t-dmm: Quickfix for UNI-T UT61D. X-Git-Tag: dsupstream~340 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9d8fde40c3cc852e2d0b2d337609b247310ce277;p=libsigrok.git uni-t-dmm: Quickfix for UNI-T UT61D. This is a temporary fix only, since a major rework of uni-t-dmm is being done at the moment, soon to be merged. --- diff --git a/hardware/uni-t-dmm/protocol.c b/hardware/uni-t-dmm/protocol.c index 929ba9ec..c953acd5 100644 --- a/hardware/uni-t-dmm/protocol.c +++ b/hardware/uni-t-dmm/protocol.c @@ -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);