diff --git a/main/display/emote_display.cc b/main/display/emote_display.cc index 5c6dec31..e4a3f76a 100644 --- a/main/display/emote_display.cc +++ b/main/display/emote_display.cc @@ -362,7 +362,11 @@ bool EmoteEngine::OnFlushIoReady(const esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_io_event_data_t* const edata, void* const user_ctx) { - return true; + gfx_handle_t handle = static_cast(user_ctx); + if (handle) { + gfx_emote_flush_ready(handle, true); + } + return false; } void EmoteEngine::OnFlush(const gfx_handle_t handle, const int x_start, const int y_start, @@ -372,7 +376,6 @@ void EmoteEngine::OnFlush(const gfx_handle_t handle, const int x_start, const in if (panel) { esp_lcd_panel_draw_bitmap(panel, x_start, y_start, x_end, y_end, color_data); } - gfx_emote_flush_ready(handle, true); } // ============================================================================ diff --git a/main/idf_component.yml b/main/idf_component.yml index 290a7112..bd674aa3 100644 --- a/main/idf_component.yml +++ b/main/idf_component.yml @@ -44,7 +44,7 @@ dependencies: esp_lvgl_port: ~2.6.0 espressif/esp_io_expander_tca95xx_16bit: ^2.0.0 espressif2022/image_player: ^1.1.1 - espressif2022/esp_emote_gfx: ^1.1.2 + espressif2022/esp_emote_gfx: ==2.0.0 espressif/adc_mic: ^0.2.1 espressif/esp_mmap_assets: '>=1.2' txp666/otto-emoji-gif-component: