diff options
Diffstat (limited to 'cli.c')
-rw-r--r-- | cli.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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: |