bugfix: return int not pointer

This commit is contained in:
Amir Gonnen
2019-01-29 22:06:36 +02:00
parent dd41f411e6
commit 950fb33206
2 changed files with 2 additions and 2 deletions

View File

@@ -280,7 +280,7 @@ uint16_t lv_img_get_src_id(lv_obj_t * img)
return ext->lang_txt_id;
#else
LV_LOG_WARN("lv_img_get_text_lang: multiple languages are not enabled. See lv_conf.h USE_LV_MULTI_LANG ")
return NULL;
return 0;
#endif
}

View File

@@ -379,7 +379,7 @@ uint16_t lv_label_get_text_id(lv_obj_t * label)
return ext->lang_txt_id;
#else
LV_LOG_WARN("lv_label_get_text_multi: multiple languages are not enabled. See lv_conf.h USE_LV_MULTI_LANG ")
return NULL;
return 0;
#endif
}