We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42cf3c9 commit 0c1bb48Copy full SHA for 0c1bb48
Adafruit_TCS34725/Adafruit_TCS34725.py
@@ -197,7 +197,7 @@ def calculateColorTemperature(rgb):
197
Z = (-0.68202 * rgb['r']) + (0.77073 * rgb['g']) + ( 0.56332 * rgb['b'])
198
199
# Check for divide by 0 (total darkness) and return None.
200
- if (x + y + z) == 0:
+ if (X + Y + Z) == 0:
201
return None
202
203
# 2. Calculate the chromaticity co-ordinates
0 commit comments