solve warnings

This commit is contained in:
Gabor Kiss-Vamosi
2017-12-03 22:41:32 +01:00
parent 562486c14e
commit 1060e3c25a
3 changed files with 1 additions and 5 deletions

View File

@@ -475,14 +475,12 @@ static lv_res_t lv_ddlist_signal(lv_obj_t * ddlist, lv_signal_t sign, void * par
}
}
else if(sign == LV_SIGNAL_DEFOCUS) {
lv_ddlist_ext_t * ext = lv_obj_get_ext_attr(ddlist);
if(ext->opened != false) {
ext->opened = false;
lv_ddlist_refr_size(ddlist, true);
}
}
else if(sign == LV_SIGNAL_CONTROLL) {
lv_ddlist_ext_t * ext = lv_obj_get_ext_attr(ddlist);
char c = *((char*)param);
if(c == LV_GROUP_KEY_RIGHT || c == LV_GROUP_KEY_DOWN) {
if(ext->sel_opt_id + 1 < ext->option_cnt) {

View File

@@ -40,7 +40,7 @@ typedef struct
lv_lmeter_ext_t lmeter; /*Ext. of ancestor*/
/*New data for this type */
int16_t * values; /*Array of the set values (for needles) */
lv_color_t * needle_colors; /*Color of the needles (lv_color_t my_colors[needle_num])*/
const lv_color_t * needle_colors; /*Color of the needles (lv_color_t my_colors[needle_num])*/
uint8_t needle_count; /*Number of needles*/
uint8_t label_count; /*Number of labels on the scale*/
}lv_gauge_ext_t;

View File

@@ -63,7 +63,6 @@ $(LVGL_PATH)/lv_misc/lv_fonts/symbol_10_file.o \
$(LVGL_PATH)/lv_misc/lv_fonts/dejavu_80_latin_ext_b.o \
$(LVGL_PATH)/lv_misc/lv_fonts/dejavu_10_latin_ext_a.o \
$(LVGL_PATH)/lv_misc/lv_mem.o \
$(LVGL_PATH)/lv_misc/lv_templ.o \
$(LVGL_PATH)/lv_misc/lv_ll.o \
$(LVGL_PATH)/lv_misc/lv_color.o \
$(LVGL_PATH)/lv_misc/lv_txt.o \
@@ -90,7 +89,6 @@ $(LVGL_PATH)/lv_objx/lv_led.o \
$(LVGL_PATH)/lv_objx/lv_chart.o \
$(LVGL_PATH)/lv_objx/lv_img.o \
$(LVGL_PATH)/lv_objx/lv_gauge.o \
$(LVGL_PATH)/lv_objx/lv_objx_templ.o \
$(LVGL_PATH)/lv_objx/lv_btnm.o \
$(LVGL_PATH)/lv_objx/lv_cont.o \
$(LVGL_PATH)/lv_hal/lv_hal_indev.o \