mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-26 20:56:37 +00:00
Use custom logging function again
This commit is contained in:
parent
edfaae4299
commit
74a1c34f90
@ -7,16 +7,14 @@
|
|||||||
#define LOG_OUTPUT(...) Log.output(...)
|
#define LOG_OUTPUT(...) Log.output(...)
|
||||||
|
|
||||||
#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
|
||||||
|
|
||||||
#if HASP_LOG_LEVEL > LOG_LEVEL_ALERT
|
#if HASP_LOG_LEVEL > LOG_LEVEL_ALERT
|
||||||
@ -69,4 +67,4 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif // HASP_MACRO_H
|
||||||
|
@ -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*/
|
||||||
|
|
||||||
/*=================
|
/*=================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user