1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix warning

This commit is contained in:
Gabor Kiss-Vamosi 2020-03-24 09:05:46 +01:00
parent 1a94e82834
commit ca6c6c6fcc

View File

@ -297,7 +297,7 @@ uint16_t lv_txt_get_next_line(const char * txt, const lv_font_t * font,
/* If max_width doesn't mater simply find the new line character
* without thinking about word wrapping*/
if(flag & LV_TXT_FLAG_EXPAND || flag & LV_TXT_FLAG_FIT) {
if((flag & LV_TXT_FLAG_EXPAND) || (flag & LV_TXT_FLAG_FIT)) {
uint32_t i;
for(i = 0; txt[i] != '\n' && txt[i] != '\r' && txt[i] != '\0'; i++) {
/*Just find the new line chars or string ends by incrementing `i`*/