Define PRINTF macro regardless of debug level.

This commit is contained in:
Henry Gabryjelski committed 2020-03-11 15:25:40 -07:00
1 parent b8fb0cd1e1
commit 03805f3c33
2 files changed
+8 -6

No files matched your search

+7 -6
View File
@@ -116,6 +116,13 @@
//--------------------------------------------------------------------+
const char* dbg_err_str(int32_t err_id); // TODO move to other place
#if __cplusplus
#define PRINTF ::printf
#else
#define PRINTF printf
#endif
#if CFG_DEBUG
#define LOG_LV1(...) ADALOG(__VA_ARGS__)
#define LOG_LV1_BUFFER(...) ADALOG_BUFFER(__VA_ARGS__)
@@ -134,12 +141,6 @@ const char* dbg_err_str(int32_t err_id); // TODO move to other place
#if CFG_DEBUG
#if __cplusplus
#define PRINTF ::printf
#else
#define PRINTF printf
#endif
#define PRINT_LOCATION() PRINTF("%s: %d:\n", __PRETTY_FUNCTION__, __LINE__)
#define PRINT_MESS(x) PRINTF("%s: %d: %s \n" , __FUNCTION__, __LINE__, (char*)(x))
#define PRTNT_HEAP() if (CFG_DEBUG >= 3) PRINTF("\n%s: %d: Heap free: %d\n", __FUNCTION__, __LINE__, util_heap_get_free_size())
+1
View File
@@ -39,6 +39,7 @@
#include <malloc.h>
#include <Arduino.h>
#include <ctype.h>
#include <common_func.h>
// defined in linker script
extern uint32_t __data_start__[];