1
0
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:
Gabor Kiss-Vamosi 2024-01-07 13:17:14 +01:00 committed by GitHub
parent 2633a33b48
commit a8e3f5a0a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}