summaryrefslogtreecommitdiffstats
path: root/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli.c')
-rw-r--r--cli.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli.c b/cli.c
index cdbf9be..7ac4a09 100644
--- a/cli.c
+++ b/cli.c
@@ -582,6 +582,7 @@ int ReadData(pcilib_t *handle, ACCESS_MODE mode, pcilib_dma_engine_addr_t dma, p
err = pcilib_read_dma(handle, dmaid, addr, size, buf, &ret);
if ((err)||(ret <= 0)) Error("No data is returned by DMA engine");
size = ret;
+ n = ret / abs(access);
addr = 0;
break;
case ACCESS_FIFO: