From eea7432ba4a196ccbaba981b96af8ff8af0d86d0 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 22 Sep 2011 18:28:42 +0000 Subject: TIFF library now passes its unit test git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3970 42af7a65-404d-4744-a932-0658087f49c3 --- apps/graphics/tiff/tiff_addstrip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/graphics/tiff/tiff_addstrip.c') diff --git a/apps/graphics/tiff/tiff_addstrip.c b/apps/graphics/tiff/tiff_addstrip.c index 165eec5ae..fa2a50e72 100644 --- a/apps/graphics/tiff/tiff_addstrip.c +++ b/apps/graphics/tiff/tiff_addstrip.c @@ -144,7 +144,9 @@ int tiff_convstrip(FAR struct tiff_info_s *info, FAR const uint8_t *strip) /* Flush any buffer data to tmpfile2 */ ret = tiff_write(info->tmp2fd, info->iobuffer, nbytes); - DEBUGASSERT(ntotal == info->bps); +#ifdef CONFIG_DEBUG_GRAPHICS + ASSERT(ntotal == info->bps); +#endif return ret; } -- cgit v1.2.3