summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-02-06 19:07:02 +0100
committerSuren A. Chilingaryan <csa@suren.me>2015-02-06 19:07:02 +0100
commit0002c0cc260a6a8e2b6c53f19ae99a625eca4355 (patch)
tree605a8800d388ba8544909957c2dd38061de70255
parent3531f28654f24d88a3ec47f52a8e93dc9e1febc6 (diff)
downloadipecamera-0002c0cc260a6a8e2b6c53f19ae99a625eca4355.tar.gz
ipecamera-0002c0cc260a6a8e2b6c53f19ae99a625eca4355.tar.bz2
ipecamera-0002c0cc260a6a8e2b6c53f19ae99a625eca4355.tar.xz
ipecamera-0002c0cc260a6a8e2b6c53f19ae99a625eca4355.zip
Don't complain on empty_detected if flag was not set at all because no data have arrived
-rw-r--r--dma/ipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dma/ipe.c b/dma/ipe.c
index c3422ed..b692e0d 100644
--- a/dma/ipe.c
+++ b/dma/ipe.c
@@ -412,7 +412,7 @@ int dma_ipe_stream_read(pcilib_dma_context_t *vctx, pcilib_dma_engine_t dma, uin
if ((ctx->last_read_addr == (*last_written_addr_ptr))||(*last_written_addr_ptr == 0)) {
#ifdef IPEDMA_SUPPORT_EMPTY_DETECTED
//# ifdef IPEDMA_DEBUG
- if (wait)
+ if ((wait)&&(*last_written_addr_ptr))
pcilib_warning("The empty_detected flag is not set, but no data arrived within %lu us\n", wait);
//# endif /* IPEDMA_DEBUG */
#endif /* IPEDMA_SUPPORT_EMPTY_DETECTED */