Enable DATAFLASH_DEBUG to be defined externally

(for example in a Makefile) instead of it being
hardcoded in the .cpp file.
pull/7774/head
DL6AKU 2018-06-01 15:23:43 +02:00
parent b7d2c1a2da
commit a0c4fb6565
1 changed files with 2 additions and 0 deletions

View File

@ -36,7 +36,9 @@
#define DATAFLASH_PAGE_BIT_528 10
/* enable debug */
#ifndef DATAFLASH_DEBUG
#define DATAFLASH_DEBUG 0
#endif /* DATAFLASH_DEBUG */
#if DATAFLASH_DEBUG
#define DEBUG_PRINTF(...) printf(__VA_ARGS__)