]> sigrok.org Git - libsigrok.git/commitdiff
ipdbg-la: return correct samples limit
authorEva Kissling <redacted>
Mon, 11 Sep 2017 15:30:53 +0000 (17:30 +0200)
committerUwe Hermann <redacted>
Wed, 29 Aug 2018 21:59:22 +0000 (23:59 +0200)
src/hardware/ipdbg-logic-analyser/protocol.c

index 07f5d54f3b9aa640755c3669da39d8e373b3ab9b..fa39fb35cc7cb6dc197fff3b22467700cd1a14ce 100644 (file)
@@ -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 );