Update LedDevicePhilipsHue.cpp

Changed "isnan" to "std::isnan"
This commit is contained in:
tpmodding 2016-05-27 11:16:42 +02:00
parent 1e6347e708
commit 528f024527
1 changed files with 2 additions and 2 deletions

View File

@ -105,10 +105,10 @@ CiColor PhilipsHueLight::rgbToCiColor(float red, float green, float blue) {
// Convert to x,y space.
float cx = X / (X + Y + Z);
float cy = Y / (X + Y + Z);
if (isnan(cx)) {
if (std::isnan(cx)) {
cx = 0.0f;
}
if (isnan(cy)) {
if (std::isnan(cy)) {
cy = 0.0f;
}
// Brightness is simply Y in the XYZ space.