test fix warning and docs build error

This commit is contained in:
Gabor Kiss-Vamosi
2021-10-04 14:55:27 +02:00
parent 18f61c5f77
commit d908f31f8f
2 changed files with 12 additions and 1 deletions

View File

@@ -26,5 +26,16 @@ void lv_example_freetype_1(void)
lv_label_set_text(label, "Hello world\nI'm a font created with FreeType");
lv_obj_center(label);
}
#else
void lv_example_freetype_1(void)
{
/*TODO
*fallback for online examples*/
lv_obj_t * label = lv_label_create(lv_scr_act());
lv_label_set_text(label, "FreeType is not installed");
lv_obj_center(label);
}
#endif