Update lv_color.h
@@ -344,7 +344,6 @@ static inline uint8_t lv_color_to8(lv_color_t color)
static inline uint16_t lv_color_to16(lv_color_t color)
{
-
#if LV_COLOR_DEPTH == 1
if(color.full == 0)
return 0;
@@ -373,10 +372,7 @@ static inline uint16_t lv_color_to16(lv_color_t color)
#endif
LV_COLOR_SET_B16(ret, LV_COLOR_GET_B(color) >> 3); /* 8 - 5 = 3*/
return ret.full;
-#else
- return 0;
#endif
-
}
static inline uint32_t lv_color_to32(lv_color_t color)
