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

@ -7,16 +7,14 @@
#define LOG_OUTPUT(...) Log.output(...)
#if HASP_LOG_LEVEL > LOG_LEVEL_FATAL
#define LOG_FATAL(...) \
Log.fatal(__VA_ARGS__); \
while (true) \
{ \
#define LOG_FATAL(...) \
Log.fatal(__VA_ARGS__); \
while(true) { \
}
#else
#define LOG_FATAL(...) \
do \
{ \
} while (0)
#define LOG_FATAL(...) \
do { \
} while(0)
#endif
#if HASP_LOG_LEVEL > LOG_LEVEL_ALERT
@ -69,4 +67,4 @@
#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';
* 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*/
/*=================