From a0c4fb65658588c8f82bf8b732a935f00d9abebd Mon Sep 17 00:00:00 2001 From: DL6AKU Date: Fri, 1 Jun 2018 15:23:43 +0200 Subject: [PATCH] Enable DATAFLASH_DEBUG to be defined externally (for example in a Makefile) instead of it being hardcoded in the .cpp file. --- DataFlashBlockDevice.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DataFlashBlockDevice.cpp b/DataFlashBlockDevice.cpp index cbff1948f3..e367b2d398 100644 --- a/DataFlashBlockDevice.cpp +++ b/DataFlashBlockDevice.cpp @@ -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__)