Fabio Fumi
/
send_to_sharp
Renamed
Diff: bit_send.h
- Revision:
- 5:062962db7a48
- Parent:
- 1:9289febf4ae9
--- a/bit_send.h Wed Feb 23 12:24:16 2022 +0000 +++ b/bit_send.h Tue Mar 29 10:06:20 2022 +0000 @@ -12,11 +12,13 @@ #define BIT_LAST_PROCESSING ( 1UL << 2 ) // last bit is being processes #define BIT_SENDING ( 1UL << 3 ) // bit being processed -#define DEBUG 1 -#ifdef DEBUG +#ifdef FILE_BUF_SIZE +//extern volatile char debugOut[]; // holding debug info to print at the end +//static char debugLine[128]; +//#define debug_printf(f_, ...) { sprintf((char*)debugLine,(f_), ##__VA_ARGS__); strcat ( (char*)debugOut, debugLine ); } +#define debug_printf(f_, ...) +#else #define debug_printf(f_, ...) printf((f_), ##__VA_ARGS__) -#else -#define debug_printf(...) #endif void bitHandlerInit( void ) ;