Skip to content

Commit 4bf500a

Browse files
authored
Reduce amount of logging messages printed by LVGL. (#129)
I guess the logging level was set low for debugging. In the "productive" version this is not necessary. Instead reduce clutter from regular serial interface communication.
2 parents 6e7cac5 + 62a3519 commit 4bf500a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/3rd_party_adapters/LVGL/GuiEngine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ void GuiEngine::registerKeyPad(IKeypad *keypad)
201201
void GuiEngine::refresh()
202202
{
203203
lv_timer_handler();
204-
LV_LOG_USER("Adafruit display() start");
204+
LV_LOG_TRACE("Adafruit display() start");
205205
this->display.display();
206-
LV_LOG_USER("Adafruit display() end");
206+
LV_LOG_TRACE("Adafruit display() end");
207207
}
208208

209209
/**

lib/3rd_party_adapters/LVGL/lv_conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
*LV_LOG_LEVEL_ERROR Only critical issue, when the system may fail
241241
*LV_LOG_LEVEL_USER Only logs added by the user
242242
*LV_LOG_LEVEL_NONE Do not log anything*/
243-
#define LV_LOG_LEVEL LV_LOG_LEVEL_INFO
243+
#define LV_LOG_LEVEL LV_LOG_LEVEL_WARN
244244

245245
/*1: Print the log with 'printf';
246246
*0: User need to register a callback with `lv_log_register_print_cb()`*/

0 commit comments

Comments
 (0)