Fixed a bug in TIM2 segment serializer that prevented to obtained the right color size in some cases.