Use custom logging function again

This commit is contained in:
fvanroie 2021-03-16 00:52:36 +01:00
parent edfaae4299
commit 74a1c34f90
2 changed files with 8 additions and 10 deletions

View File

@ -9,13 +9,11 @@
#if HASP_LOG_LEVEL > LOG_LEVEL_FATAL #if HASP_LOG_LEVEL > LOG_LEVEL_FATAL
#define LOG_FATAL(...) \ #define LOG_FATAL(...) \
Log.fatal(__VA_ARGS__); \ Log.fatal(__VA_ARGS__); \
while (true) \ while(true) { \
{ \
} }
#else #else
#define LOG_FATAL(...) \ #define LOG_FATAL(...) \
do \ do { \
{ \
} while(0) } while(0)
#endif #endif
@ -69,4 +67,4 @@
#endif #endif
#endif #endif // HASP_MACRO_H

View File

@ -289,7 +289,7 @@ typedef void* lv_indev_drv_user_data_t; /*Type of user data in the in
/* 1: Print the log with 'printf'; /* 1: Print the log with 'printf';
* 0: user need to register a callback with `lv_log_register_print_cb`*/ * 0: user need to register a callback with `lv_log_register_print_cb`*/
# define LV_LOG_PRINTF 1 # define LV_LOG_PRINTF 0
#endif /*LV_USE_LOG*/ #endif /*LV_USE_LOG*/
/*================= /*=================