mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-08-09 01:11:56 +02:00
Fix lvgl without display (#574)
This commit is contained in:
@@ -109,6 +109,8 @@ esp_err_t display_init(void * pvParameters)
|
|||||||
|
|
||||||
lv_disp_t * disp = lvgl_port_add_disp(&disp_cfg);
|
lv_disp_t * disp = lvgl_port_add_disp(&disp_cfg);
|
||||||
|
|
||||||
|
if (esp_lcd_panel_init_err == ESP_OK) {
|
||||||
|
|
||||||
if (lvgl_port_lock(0)) {
|
if (lvgl_port_lock(0)) {
|
||||||
lv_style_init(&scr_style);
|
lv_style_init(&scr_style);
|
||||||
lv_style_set_text_font(&scr_style, &lv_font_portfolio_6x8);
|
lv_style_set_text_font(&scr_style, &lv_font_portfolio_6x8);
|
||||||
@@ -120,7 +122,6 @@ esp_err_t display_init(void * pvParameters)
|
|||||||
lvgl_port_unlock();
|
lvgl_port_unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (esp_lcd_panel_init_err == ESP_OK) {
|
|
||||||
// Only turn on the screen when it has been cleared
|
// Only turn on the screen when it has been cleared
|
||||||
ESP_RETURN_ON_ERROR(esp_lcd_panel_disp_on_off(panel_handle, true), TAG, "Panel display on failed");
|
ESP_RETURN_ON_ERROR(esp_lcd_panel_disp_on_off(panel_handle, true), TAG, "Panel display on failed");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user