fix arduino ide build error

This commit is contained in:
lewisxhe
2026-07-21 15:23:30 +08:00
parent 5939aca72e
commit 274ddaa0d0
4 changed files with 14 additions and 95 deletions
+6 -2
View File
@@ -45,8 +45,10 @@ enum {
};
typedef uint8_t lv_menu_builder_variant_t;
static void back_event_handler(lv_event_t *e);
static void switch_handler(lv_event_t *e);
// static void back_event_handler(lv_event_t *e);
// static void switch_handler(lv_event_t *e);
lv_obj_t *root_page;
static lv_obj_t *create_text(lv_obj_t *parent, const char *icon, const char *txt,
lv_menu_builder_variant_t builder_variant);
@@ -507,6 +509,7 @@ void setupUI(void)
lv_timer_handler();
}
#if 0
static void back_event_handler(lv_event_t *e)
{
lv_obj_t *obj = lv_event_get_target(e);
@@ -535,6 +538,7 @@ static void switch_handler(lv_event_t *e)
}
}
}
#endif
static lv_obj_t *create_text(lv_obj_t *parent, const char *icon, const char *txt,
lv_menu_builder_variant_t builder_variant)