From 1be21a93b39113bb945c8041f0123f487674761d Mon Sep 17 00:00:00 2001 From: Neo Xu Date: Wed, 27 Dec 2023 10:17:53 +0800 Subject: [PATCH] fix(event): use 16bit for lvgl event to avoid overlowing (#5102) Signed-off-by: Xuxingliang --- src/misc/lv_event.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc/lv_event.h b/src/misc/lv_event.h index 78ddf4cc5..a663a2634 100644 --- a/src/misc/lv_event.h +++ b/src/misc/lv_event.h @@ -109,9 +109,9 @@ typedef enum { LV_EVENT_VSYNC, - _LV_EVENT_LAST, /** Number of default events*/ + _LV_EVENT_LAST, /** Number of default events*/ - LV_EVENT_PREPROCESS = 0x80, /** This is a flag that can be set with an event so it's processed + LV_EVENT_PREPROCESS = 0x8000, /** This is a flag that can be set with an event so it's processed before the class default event processing */ } lv_event_code_t;