Prevent logging internal LVGL errors to stdout
This commit is contained in:
parent
71b0b812a1
commit
79c1b2dfb6
4 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue