diff --git a/CHANGELOG.md b/CHANGELOG.md index 9abc4fa..12d430a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ If a change only affects particular applications, they are listed in parentheses - feat(buffyboard): Add man pages (!23, thanks @Jarrah) - misc: Unify build system (!23, thanks @Jarrah) +- fix: Prevent logging internal LVGL errors to stdout ## 3.2.0 (2024-06-03) diff --git a/buffyboard/lv_conf.h b/buffyboard/lv_conf.h index 64247c4..23acdb9 100644 --- a/buffyboard/lv_conf.h +++ b/buffyboard/lv_conf.h @@ -246,7 +246,7 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/ /*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 /*Enable/disable LV_LOG_TRACE in modules that produces a huge number of logs*/ # define LV_LOG_TRACE_MEM 1 diff --git a/buffyboard/main.c b/buffyboard/main.c index 317445f..bce4496 100644 --- a/buffyboard/main.c +++ b/buffyboard/main.c @@ -211,8 +211,9 @@ int main(int argc, char *argv[]) { return 1; } - /* Initialise lvgl */ + /* Initialise LVGL and set up logging callback */ lv_init(); + lv_log_register_print_cb(bbx_log_print_cb); /* Initialise display */ lv_display_t *disp = lv_linux_fbdev_create(); diff --git a/unl0kr/lv_conf.h b/unl0kr/lv_conf.h index ac94719..438fddd 100644 --- a/unl0kr/lv_conf.h +++ b/unl0kr/lv_conf.h @@ -140,7 +140,7 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/ /*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 /*Enable/disable LV_LOG_TRACE in modules that produces a huge number of logs*/ # define LV_LOG_TRACE_MEM 1