docs(rlottie) fix build error

This commit is contained in:
Gabor Kiss-Vamosi
2021-10-22 16:05:25 +02:00
parent 03fff13f62
commit ce0b564588
2 changed files with 22 additions and 0 deletions

View File

@@ -11,4 +11,15 @@ void lv_example_rlottie_1(void)
lv_obj_center(lottie);
}
#else
void lv_example_rlottie_1(void)
{
/*TODO
*fallback for online examples*/
lv_obj_t * label = lv_label_create(lv_scr_act());
lv_label_set_text(label, "Rlottie is not installed");
lv_obj_center(label);
}
#endif

View File

@@ -12,4 +12,15 @@ void lv_example_rlottie_2(void)
lv_obj_center(lottie);
}
#else
void lv_example_rlottie_2(void)
{
/*TODO
*fallback for online examples*/
lv_obj_t * label = lv_label_create(lv_scr_act());
lv_label_set_text(label, "Rlottie is not installed");
lv_obj_center(label);
}
#endif