1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-18 07:45:56 +00:00

[lvgl] Bug fixes (#7338)

This commit is contained in:
Clyde Stubbs
2024-08-23 04:56:53 +10:00
committed by GitHub
parent ab620acd4f
commit 5cc8dbace4
7 changed files with 41 additions and 10 deletions

View File

@@ -294,6 +294,13 @@ void LvglComponent::loop() {
}
lv_timer_handler_run_in_period(5);
}
bool lv_is_pre_initialise() {
if (!lv_is_initialized()) {
ESP_LOGE(TAG, "LVGL call before component is initialised");
return true;
}
return false;
}
#ifdef USE_LVGL_IMAGE
lv_img_dsc_t *lv_img_from(image::Image *src, lv_img_dsc_t *img_dsc) {