Fix includes for debug output.

This commit is contained in:
px4dev 2012-11-29 00:33:44 -08:00
parent 8c0c979655
commit 03a82e0a03
1 changed files with 4 additions and 3 deletions

View File

@ -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
/*