mirror of
https://github.com/78/xiaozhi-esp32.git
synced 2026-02-27 14:26:36 +00:00
refactor: Remove hardcoded loop delay for GIF playback in LcdDisplay class
This commit is contained in:
@@ -1032,8 +1032,6 @@ void LcdDisplay::SetEmotion(const char* emotion) {
|
||||
gif_controller_ = std::make_unique<LvglGif>(image->image_dsc());
|
||||
|
||||
if (gif_controller_->IsLoaded()) {
|
||||
// Set loop delay to 1000ms
|
||||
gif_controller_->SetLoopDelay(3000);
|
||||
// Set up frame update callback
|
||||
gif_controller_->SetFrameCallback([this]() {
|
||||
lv_image_set_src(emoji_image_, gif_controller_->image_dsc());
|
||||
|
||||
Reference in New Issue
Block a user