mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
18 lines
586 B
Diff
18 lines
586 B
Diff
diff --git a/libsrc/leddevice/LedDevicePhilipsHue.cpp b/libsrc/leddevice/LedDevicePhilipsHue.cpp
|
|
index 332176a..81f421b 100755
|
|
--- a/libsrc/leddevice/LedDevicePhilipsHue.cpp
|
|
+++ b/libsrc/leddevice/LedDevicePhilipsHue.cpp
|
|
@@ -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.
|