diff --git a/src/lv_misc/lv_color.h b/src/lv_misc/lv_color.h index 94f6c8c1a1..05f6e320a2 100644 --- a/src/lv_misc/lv_color.h +++ b/src/lv_misc/lv_color.h @@ -373,9 +373,10 @@ 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; -#endif - +#else return 0; +#endif + } static inline uint32_t lv_color_to32(lv_color_t color)