From 64b05d33aabbedf8ac544c407e428cba93b145f3 Mon Sep 17 00:00:00 2001 From: Henry Gabryjelski Date: Sat, 7 Mar 2020 15:54:38 -0800 Subject: [PATCH] Fix stack trace debug level check --- cores/nRF5/common_func.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/nRF5/common_func.h b/cores/nRF5/common_func.h index 71e1fd65..39d395ff 100644 --- a/cores/nRF5/common_func.h +++ b/cores/nRF5/common_func.h @@ -142,7 +142,7 @@ const char* dbg_err_str(int32_t err_id); // TODO move to other place #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()) +#define PRTNT_HEAP() if (CFG_DEBUG >= 3) PRINTF("\n%s: %d: Heap free: %d\n", __FUNCTION__, __LINE__, util_heap_get_free_size()) #define PRINT_STR(x) PRINTF("%s: %d: " #x " = %s\n" , __FUNCTION__, __LINE__, (char*)(x) ) #define PRINT_INT(x) PRINTF("%s: %d: " #x " = %ld\n" , __FUNCTION__, __LINE__, (uint32_t) (x) ) #define PRINT_FLOAT(x) PRINTF("%s: %d: " #x " = %f\n" , __FUNCTION__, __LINE__, (float) (x) )