From: Eva Kissling Date: Mon, 11 Sep 2017 15:30:53 +0000 (+0200) Subject: ipdbg-la: return correct samples limit X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a54144c0bdc732be8aa3b579bc20289af7ee9617;p=libsigrok.git ipdbg-la: return correct samples limit --- diff --git a/src/hardware/ipdbg-logic-analyser/protocol.c b/src/hardware/ipdbg-logic-analyser/protocol.c index 07f5d54f..fa39fb35 100644 --- a/src/hardware/ipdbg-logic-analyser/protocol.c +++ b/src/hardware/ipdbg-logic-analyser/protocol.c @@ -560,7 +560,7 @@ SR_PRIV void ipdbg_org_la_get_addrwidth_and_datawidth(struct ipdbg_org_la_tcp *t devc->DATA_WIDTH_BYTES = (devc->DATA_WIDTH+HOST_WORD_SIZE -1)/HOST_WORD_SIZE; devc->ADDR_WIDTH_BYTES = (devc->ADDR_WIDTH+HOST_WORD_SIZE -1)/HOST_WORD_SIZE; devc->limit_samples_max = (0x01 << devc->ADDR_WIDTH); - devc->limit_samples = (0x01 << HOST_WORD_SIZE); + devc->limit_samples = devc->limit_samples_max;// (0x01 << HOST_WORD_SIZE); //sr_err("DATA_WIDTH_BYTES: %d ADDR_WIDTH_BYTES : %d LIMIT_SAMPLES: %d", devc->DATA_WIDTH_BYTES, devc->ADDR_WIDTH_BYTES, devc->limit_samples );