diff options
author | root <root@ipepdvpc4> | 2011-07-27 11:49:26 +0200 |
---|---|---|
committer | root <root@ipepdvpc4> | 2011-07-27 11:49:26 +0200 |
commit | 9b5ceef2b3b914bfe49e255b5a5d88db94739301 (patch) | |
tree | c6ce6c98c5304b56a11419e168dbef7df4225474 | |
parent | 093a3ad25ec0eca3d7a535a2d054b15f7ce1f757 (diff) | |
download | ipecamera-9b5ceef2b3b914bfe49e255b5a5d88db94739301.tar.gz ipecamera-9b5ceef2b3b914bfe49e255b5a5d88db94739301.tar.bz2 ipecamera-9b5ceef2b3b914bfe49e255b5a5d88db94739301.tar.xz ipecamera-9b5ceef2b3b914bfe49e255b5a5d88db94739301.zip |
Print propper number of strings in cli in case of DMA read
-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: |