Fix compiler warning in lv_color_to16
This commit is contained in:
@@ -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;
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline uint32_t lv_color_to32(lv_color_t color)
|
static inline uint32_t lv_color_to32(lv_color_t color)
|
||||||
|
|||||||
Reference in New Issue
Block a user