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:
Uwe Hermann 2013-01-21 01:45:02 +01:00
parent 5edc02c77c
commit 9d8fde40c3
1 changed files with 5 additions and 3 deletions

View 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);