From 409a998df27bc4ebf0173cb3da82becf77221b60 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Wed, 27 Feb 2019 10:58:18 +0100 Subject: [PATCH] add voaltile to 'disp_drv->flushing' to work with optimization --- lv_hal/lv_hal_disp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lv_hal/lv_hal_disp.h b/lv_hal/lv_hal_disp.h index a7e337a70..6725c854c 100644 --- a/lv_hal/lv_hal_disp.h +++ b/lv_hal/lv_hal_disp.h @@ -50,7 +50,7 @@ typedef struct void * buf_act; uint32_t size; /*In pixel count*/ lv_area_t area; - uint32_t flushing :1; + volatile uint32_t flushing :1; }lv_disp_buf_t;