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.
This commit is contained in:
parent
5edc02c77c
commit
9d8fde40c3
|
@ -255,10 +255,12 @@ static int uni_t_dmm_receive_data(int fd, int revents, int dmm, void *cb_data)
|
||||||
if (data_byte_counter == NUM_DATA_BYTES) {
|
if (data_byte_counter == NUM_DATA_BYTES) {
|
||||||
log_dmm_packet(pbuf);
|
log_dmm_packet(pbuf);
|
||||||
data_byte_counter = 0;
|
data_byte_counter = 0;
|
||||||
|
if (dmm == VOLTCRAFT_VC820) {
|
||||||
if (!sr_fs9721_packet_valid(pbuf)) {
|
if (!sr_fs9721_packet_valid(pbuf)) {
|
||||||
sr_err("Invalid packet.");
|
sr_err("Invalid packet.");
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
decode_packet(devc, dmm, pbuf);
|
decode_packet(devc, dmm, pbuf);
|
||||||
memset(pbuf, 0x00, NUM_DATA_BYTES);
|
memset(pbuf, 0x00, NUM_DATA_BYTES);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue