diff --git a/examples/libs/rlottie/lv_example_rlottie_1.c b/examples/libs/rlottie/lv_example_rlottie_1.c index 3470841b33..7b889fbbe2 100644 --- a/examples/libs/rlottie/lv_example_rlottie_1.c +++ b/examples/libs/rlottie/lv_example_rlottie_1.c @@ -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 diff --git a/examples/libs/rlottie/lv_example_rlottie_2.c b/examples/libs/rlottie/lv_example_rlottie_2.c index a93291ab9b..1f882b4a50 100644 --- a/examples/libs/rlottie/lv_example_rlottie_2.c +++ b/examples/libs/rlottie/lv_example_rlottie_2.c @@ -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