Fix compiler warning in lv_color_to16

This commit is contained in:
Deon Marais
2020-01-29 17:47:20 +02:00
committed by GitHub
parent eb67692baa
commit 1765dde018

View File

@@ -373,9 +373,10 @@ static inline uint16_t lv_color_to16(lv_color_t color)
#endif #endif
LV_COLOR_SET_B16(ret, LV_COLOR_GET_B(color) >> 3); /* 8 - 5 = 3*/ LV_COLOR_SET_B16(ret, LV_COLOR_GET_B(color) >> 3); /* 8 - 5 = 3*/
return ret.full; return ret.full;
#else
return 0;
#endif #endif
return 0;
} }
static inline uint32_t lv_color_to32(lv_color_t color) static inline uint32_t lv_color_to32(lv_color_t color)