mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(refr): update checking for a valid draw buffer (#5210)
This commit is contained in:
parent
2633a33b48
commit
a8e3f5a0a5
@ -345,11 +345,7 @@ void _lv_display_refr_timer(lv_timer_t * tmr)
|
||||
return;
|
||||
}
|
||||
|
||||
if(disp_refr->buf_act->data_size == 0) {
|
||||
LV_LOG_WARN("disp->buf_size_in_bytes is 0");
|
||||
return;
|
||||
}
|
||||
if(disp_refr->buf_1.data == NULL) {
|
||||
if(disp_refr->buf_act == NULL || disp_refr->buf_act->data == NULL || disp_refr->buf_act->data_size == 0) {
|
||||
LV_LOG_WARN("No draw buffer");
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user