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