Skip to content

Commit

Permalink
progmem fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
sovcik committed Jun 10, 2020
1 parent f9f2d81 commit d325710
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/debug_print.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define DEBUG_ARRAY(ARR,ARR_L) for (uint16_t _aidx =0; _aidx<ARR_L;_aidx++) {DEBUG_PORT.printf("%02X ",*(ARR+_aidx)); if (_aidx%20 == 19)DEBUG_PORT.printf("\n");}
#define DEBUG_ARRAY_F(ARR,ARR_L,ARR_F) for (uint16_t _aidx =0; _aidx<ARR_L;_aidx++) {DEBUG_PORT.printf(ARR_F,*(ARR+_aidx)); if (_aidx%20 == 19)DEBUG_PORT.printf("\n");}

#if defined(PGMSPACE_INCLUDE) || defined(_PGMSPACE_H_)
#if defined(PGMSPACE_INCLUDE) || defined(PROGMEM)
#define DEBUG_PRINT_PGM(...) DEBUG_PORT.printf_P( __VA_ARGS__ )
#else
#define DEBUG_PRINT_PGM(...)
Expand All @@ -28,7 +28,7 @@
#define CONSOLE_ARRAY(ARR,ARR_L) for (uint16_t _aidx =0; _aidx<ARR_L;_aidx++) {CONSOLE_PORT.printf("%02X ",*(ARR+_aidx)); if (_aidx%20 == 19)CONSOLE_PORT.printf("\n");}
#define CONSOLE_ARRAY_F(ARR,ARR_L,ARR_F) for (uint16_t _aidx =0; _aidx<ARR_L;_aidx++) {CONSOLE_PORT.printf(ARR_F,*(ARR+_aidx)); if (_aidx%20 == 19)CONSOLE_PORT.printf("\n");}

#if defined(PGMSPACE_INCLUDE) || defined(_PGMSPACE_H_)
#if defined(PGMSPACE_INCLUDE) || defined(PROGMEM)
#define CONSOLE_PGM(...) CONSOLE_PORT.printf_P( __VA_ARGS__ )
#else
#define CONSOLE_PGM(...)
Expand Down

0 comments on commit d325710

Please sign in to comment.