diff options
author | px4dev <px4@purgatory.org> | 2012-11-29 00:33:44 -0800 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2012-11-29 00:33:44 -0800 |
commit | 03a82e0a039d8ce3bea5cc97c181d649b97d6edf (patch) | |
tree | b92ef61afca85ff75061d1762632d09c24405cbe /apps/px4io | |
parent | 8c0c979655bcdcb7277e7ebbd79852e09a8c87e0 (diff) | |
download | px4-firmware-03a82e0a039d8ce3bea5cc97c181d649b97d6edf.tar.gz px4-firmware-03a82e0a039d8ce3bea5cc97c181d649b97d6edf.tar.bz2 px4-firmware-03a82e0a039d8ce3bea5cc97c181d649b97d6edf.zip |
Fix includes for debug output.
Diffstat (limited to 'apps/px4io')
-rw-r--r-- | apps/px4io/px4io.h | 7 |
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 /* |