uni-t-dmm: Add missing special cases for some ES519xx protocols.

This commit is contained in:
Uwe Hermann 2017-05-24 01:29:28 +02:00
parent 8a68f96eae
commit 06f0872ea9
1 changed files with 2 additions and 0 deletions

View File

@ -246,6 +246,8 @@ static int get_and_handle_data(struct sr_dev_inst *sdi)
for (i = 0; i < num_databytes_in_chunk; i++, devc->buflen++) {
pbuf[devc->buflen] = buf[1 + i];
if ((dmm->packet_parse == sr_es519xx_19200_14b_parse) ||
(dmm->packet_parse == sr_es519xx_19200_11b_parse) ||
(dmm->packet_parse == sr_es519xx_2400_11b_parse) ||
(dmm->packet_parse == sr_ut71x_parse)) {
/* Mask off the parity bit. */
pbuf[devc->buflen] &= ~(1 << 7);