Prevent logging internal LVGL errors to stdout

This commit is contained in:
Johannes Marbach 2024-08-08 20:05:28 +02:00
parent 71b0b812a1
commit 79c1b2dfb6
4 changed files with 5 additions and 3 deletions

View file

@ -12,6 +12,7 @@ If a change only affects particular applications, they are listed in parentheses
- feat(buffyboard): Add man pages (!23, thanks @Jarrah) - feat(buffyboard): Add man pages (!23, thanks @Jarrah)
- misc: Unify build system (!23, thanks @Jarrah) - misc: Unify build system (!23, thanks @Jarrah)
- fix: Prevent logging internal LVGL errors to stdout
## 3.2.0 (2024-06-03) ## 3.2.0 (2024-06-03)

View file

@ -246,7 +246,7 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
/*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
/*Enable/disable LV_LOG_TRACE in modules that produces a huge number of logs*/ /*Enable/disable LV_LOG_TRACE in modules that produces a huge number of logs*/
# define LV_LOG_TRACE_MEM 1 # define LV_LOG_TRACE_MEM 1

View file

@ -211,8 +211,9 @@ int main(int argc, char *argv[]) {
return 1; return 1;
} }
/* Initialise lvgl */ /* Initialise LVGL and set up logging callback */
lv_init(); lv_init();
lv_log_register_print_cb(bbx_log_print_cb);
/* Initialise display */ /* Initialise display */
lv_display_t *disp = lv_linux_fbdev_create(); lv_display_t *disp = lv_linux_fbdev_create();

View file

@ -140,7 +140,7 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
/*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
/*Enable/disable LV_LOG_TRACE in modules that produces a huge number of logs*/ /*Enable/disable LV_LOG_TRACE in modules that produces a huge number of logs*/
# define LV_LOG_TRACE_MEM 1 # define LV_LOG_TRACE_MEM 1