From 30fe596d2661640b528151dd51fa310598443ad4 Mon Sep 17 00:00:00 2001 From: _VIFEXTech Date: Wed, 15 Mar 2023 13:48:11 +0800 Subject: [PATCH] fix(demo_flex_layout): fix warning (#4061) Signed-off-by: pengyiqiang Co-authored-by: pengyiqiang --- demos/flex_layout/lv_demo_flex_layout_view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/flex_layout/lv_demo_flex_layout_view.c b/demos/flex_layout/lv_demo_flex_layout_view.c index a6b1eaffd..467c984c7 100644 --- a/demos/flex_layout/lv_demo_flex_layout_view.c +++ b/demos/flex_layout/lv_demo_flex_layout_view.c @@ -101,7 +101,7 @@ void view_create(lv_obj_t * par, view_t * ui) ui->ctrl_pad.btn.add = btn_create(obj, "Add", lv_palette_main(LV_PALETTE_BLUE_GREY)); ui->ctrl_pad.btn.remove = btn_create(obj, "Remove", lv_palette_main(LV_PALETTE_RED)); - lv_event_send(ui->root, LV_EVENT_CLICKED, NULL); /*Make it active by default*/ + lv_obj_send_event(ui->root, LV_EVENT_CLICKED, NULL); /*Make it active by default*/ /* fade effect */ lv_obj_fade_in(ui->root, 600, 0);