diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2012-10-29 19:19:32 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2012-10-29 19:19:32 +0100 |
commit | 55961a80260cedc25eab90800253feaa94cffd16 (patch) | |
tree | 06955ef077c44e9d8850c2665cadcf593fbbf371 | |
parent | d08aee7b4f62d5e4b3202fe6e4d724f84963618b (diff) | |
download | ipecamera-55961a80260cedc25eab90800253feaa94cffd16.tar.gz ipecamera-55961a80260cedc25eab90800253feaa94cffd16.tar.bz2 ipecamera-55961a80260cedc25eab90800253feaa94cffd16.tar.xz ipecamera-55961a80260cedc25eab90800253feaa94cffd16.zip |
Report errors during DMA read in cli
-rw-r--r-- | cli.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -766,6 +766,10 @@ int ReadData(pcilib_t *handle, ACCESS_MODE mode, FLAGS flags, pcilib_dma_engine_ } } while (err == PCILIB_ERROR_TOOBIG); } + + if ((err)&&(err != PCILIB_ERROR_TIMEOUT)) { + Error("Error (%i) during DMA read", err); + } if (bytes <= 0) { pcilib_warning("No data is returned by DMA engine"); return 0; |