Fixed compiling with DEBUG=ON

This commit is contained in:
Raphael Coeffic
2021-11-21 11:18:35 +01:00
committed by Raphael Coeffic
parent c8a4a80ffd
commit ffd537a28b
3 changed files with 42 additions and 4 deletions
+1
View File
@@ -44,6 +44,7 @@ uint8_t aux2SerialTracesEnabled();
#include <stdio.h>
#define debugPrintf(...) printf(__VA_ARGS__)
#elif defined(DEBUG) && defined(CLI)
#include "cli_traces.h"
#define debugPrintf(...) do { if (cliTracesEnabled) serialPrintf(__VA_ARGS__); } while(0)
#elif defined(DEBUG)
#define debugPrintf(...) do { serialPrintf(__VA_ARGS__); } while(0)