lvgl / lv_demos

Examples, tutorials and applications for the LVGL embedded GUI library
https://lvgl.io
488 stars 366 forks source link

please fix lv_demo_music_main.c #109

Closed ataweg closed 3 years ago

ataweg commented 3 years ago

Build with current version of lvgl breaks build of lv_demo_music. Here is the fix: In lv_demo_music_main.c from line 592 replace

   else if(code == LV_EVENT_COVER_CHECK) {
        lv_draw_res_t * res = lv_event_get_param(e);
        *res = LV_COVER_RES_NOT_COVER;

with

    else if(code == LV_EVENT_COVER_CHECK) {
        lv_cover_check_info_t * info = lv_event_get_param(e);
        info->res = LV_COVER_RES_NOT_COVER;

Doing so all will be fine.

kisvegabor commented 3 years ago

Thanks for the report, I've fixed it.