mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
parent
24893c37ae
commit
d78e927252
@ -244,7 +244,6 @@ set(LVGL_TEST_OPTIONS_TEST_COMMON
|
||||
${LVGL_TEST_COMMON_EXAMPLE_OPTIONS}
|
||||
-DLV_FONT_DEFAULT=&lv_font_montserrat_14
|
||||
-Wno-unused-but-set-variable # unused variables are common in the dual-heap arrangement
|
||||
-Wno-unused-variable
|
||||
)
|
||||
|
||||
set(LVGL_TEST_OPTIONS_TEST_SYSHEAP
|
||||
@ -298,7 +297,6 @@ set(COMPILE_OPTIONS
|
||||
-Wmissing-prototypes
|
||||
-Wpointer-arith
|
||||
-Wmultichar
|
||||
-Wno-discarded-qualifiers
|
||||
-Wpedantic
|
||||
-Wreturn-type
|
||||
-Wshadow
|
||||
|
@ -18,13 +18,13 @@ static uint32_t value_received;
|
||||
|
||||
static void msg_cb(lv_msg_t * msg)
|
||||
{
|
||||
uint32_t * v = lv_msg_get_payload(msg);
|
||||
const uint32_t * v = lv_msg_get_payload(msg);
|
||||
value_received = *v;
|
||||
}
|
||||
static void event_cb(lv_event_t * e)
|
||||
{
|
||||
lv_msg_t * msg = lv_event_get_msg(e);
|
||||
uint32_t * v = lv_msg_get_payload(msg);
|
||||
const uint32_t * v = lv_msg_get_payload(msg);
|
||||
lv_label_set_text_fmt(lv_event_get_target(e), "%d", *v);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user