aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/px4io/px4io.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/px4io/px4io.h b/apps/px4io/px4io.h
index f50e29252..0a3a4448c 100644
--- a/apps/px4io/px4io.h
+++ b/apps/px4io/px4io.h
@@ -56,10 +56,11 @@
* Debug logging
*/
-#if 1
-# define debug(fmt, ...) lib_lowprintf(fmt "\n", ##args)
+#ifdef DEBUG
+# include <debug.h>
+# define debug(fmt, args...) lib_lowprintf(fmt "\n", ##args)
#else
-# define debug(fmt, ...) do {} while(0)
+# define debug(fmt, args...) do {} while(0)
#endif
/*