mirror of
https://github.com/esphome/esphome.git
synced 2026-06-01 09:25:09 +08:00
[online_image] Clear LVGL dsc when image size changes. (#15360)
This commit is contained in:
@@ -248,6 +248,9 @@ void RuntimeImage::release_buffer_() {
|
||||
this->height_ = 0;
|
||||
this->buffer_width_ = 0;
|
||||
this->buffer_height_ = 0;
|
||||
#ifdef USE_LVGL
|
||||
memset(&this->dsc_, 0, sizeof(this->dsc_));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user