Merge pull request #9939 from AaltoNEPPI/fix-color-typo

sys/color/color.c: Fix a typo
This commit is contained in:
Martine Lenders 2018-09-15 12:45:28 +02:00 committed by GitHub
commit 090a762e1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ void color_rgb2hsv(color_rgb_t *rgb, color_hsv_t *hsv)
}
/* find the saturation from value and delta */
hsv->s = (hsv->v != 0.0f) ? (delta / hsv->v) : 0x0f;
hsv->s = (hsv->v != 0.0f) ? (delta / hsv->v) : 0.0f;
/* compute hue */
hsv->h = 0.0f;