summaryrefslogtreecommitdiff
path: root/apps/graphics/tiff/tiff_addstrip.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/graphics/tiff/tiff_addstrip.c')
-rw-r--r--apps/graphics/tiff/tiff_addstrip.c4
1 files changed, 3 insertions, 1 deletions
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;
}