minor fixes

This commit is contained in:
Gabor Kiss-Vamosi
2021-02-28 14:17:33 +01:00
parent 1e22db2c2c
commit 6f357ea745
3 changed files with 11 additions and 2 deletions

View File

@@ -415,7 +415,8 @@ typedef void * lv_user_data_t;
# endif # endif
# define LV_CALENDAR_DEFAULT_MONTH_NAMES {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"} # define LV_CALENDAR_DEFAULT_MONTH_NAMES {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}
# define LV_USE_CALENDAR_HEADER_ARROW 1 # define LV_USE_CALENDAR_HEADER_ARROW 1
# define LV_USE_CALENDAR_HEADER_DROPDOWN 1
#endif /*LV_USE_CALENDAR*/ #endif /*LV_USE_CALENDAR*/
#define LV_USE_COLORWHEEL 1 #define LV_USE_COLORWHEEL 1

View File

@@ -93,6 +93,7 @@ lv_obj_t * lv_list_add_btn(lv_obj_t * list, const char * icon, const char * txt,
const char * lv_list_get_btn_text(lv_obj_t * list, lv_obj_t * btn) const char * lv_list_get_btn_text(lv_obj_t * list, lv_obj_t * btn)
{ {
LV_UNUSED(list);
uint32_t i; uint32_t i;
for(i = 0; i < lv_obj_get_child_cnt(btn); i++) { for(i = 0; i < lv_obj_get_child_cnt(btn); i++) {
lv_obj_t * child = lv_obj_get_child(btn, i); lv_obj_t * child = lv_obj_get_child(btn, i);

View File

@@ -1210,7 +1210,14 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h" */
# ifdef CONFIG_LV_USE_CALENDAR_HEADER_ARROW # ifdef CONFIG_LV_USE_CALENDAR_HEADER_ARROW
# define LV_USE_CALENDAR_HEADER_ARROW CONFIG_LV_USE_CALENDAR_HEADER_ARROW # define LV_USE_CALENDAR_HEADER_ARROW CONFIG_LV_USE_CALENDAR_HEADER_ARROW
# else # else
# define LV_USE_CALENDAR_HEADER_ARROW 1 # define LV_USE_CALENDAR_HEADER_ARROW 1
# endif
#endif
#ifndef LV_USE_CALENDAR_HEADER_DROPDOWN
# ifdef CONFIG_LV_USE_CALENDAR_HEADER_DROPDOWN
# define LV_USE_CALENDAR_HEADER_DROPDOWN CONFIG_LV_USE_CALENDAR_HEADER_DROPDOWN
# else
# define LV_USE_CALENDAR_HEADER_DROPDOWN 1
# endif # endif
#endif #endif
#endif /*LV_USE_CALENDAR*/ #endif /*LV_USE_CALENDAR*/