lvgl / lv_binding_micropython

LVGL binding for MicroPython
MIT License
237 stars 157 forks source link

When I set LV_COLOR_DEPTH in lv_conf.h to 16, an error was reported during compilation. #123

Closed china-zhangdj closed 3 years ago

china-zhangdj commented 3 years ago

When I set LV_COLOR_DEPTH in lv_conf.h to 16, an error was reported during compilation.

../../lib/lv_bindings/lvgl/src/lv_draw/lv_draw_label.c: In function 'lv_draw_label':
../../lib/lv_bindings/lvgl/src/lv_draw/lv_draw_label.c:310:24: error: 'color' may be used uninitialized in this function [-Werror=maybe-uninitialized]
             lv_color_t color ;
embeddedt commented 3 years ago

Are you using the latest version? Line 310 of the latest version is blank. It's possible the issue has already been fixed.

china-zhangdj commented 3 years ago

Thank you, it has indeed been fixed in the new version.