diff --git a/src/widgets/list/lv_list.h b/src/widgets/list/lv_list.h index 0c3894d045..0c4ffed1e4 100644 --- a/src/widgets/list/lv_list.h +++ b/src/widgets/list/lv_list.h @@ -17,6 +17,10 @@ extern "C" { #if LV_USE_LIST +#if LV_USE_FLEX == 0 +#error "lv_list: lv_flex is required. Enable it in lv_conf.h (LV_USE_FLEX 1)" +#endif + /********************* * DEFINES *********************/ diff --git a/src/widgets/menu/lv_menu.h b/src/widgets/menu/lv_menu.h index e7bcb71351..34edb6c4e5 100644 --- a/src/widgets/menu/lv_menu.h +++ b/src/widgets/menu/lv_menu.h @@ -18,7 +18,7 @@ extern "C" { #if LV_USE_MENU #if LV_USE_FLEX == 0 -#error "LV_USE_FLEX needs to be enabled" +#error "lv_menu: lv_flex is required. Enable it in lv_conf.h (LV_USE_FLEX 1)" #endif /*********************