Replaced instance of 'long' type with 'int' for python 2 to 3 compatibility
This commit is contained in:
parent
b10a7d0396
commit
68c2a66fa6
@ -44,7 +44,7 @@ def _update_esp8266():
|
|||||||
"""
|
"""
|
||||||
global pixels, _prev_pixels
|
global pixels, _prev_pixels
|
||||||
# Truncate values and cast to integer
|
# Truncate values and cast to integer
|
||||||
pixels = np.clip(pixels, 0, 255).astype(long)
|
pixels = np.clip(pixels, 0, 255).astype(int)
|
||||||
# Optionally apply gamma correctio
|
# Optionally apply gamma correctio
|
||||||
p = _gamma[pixels] if config.GAMMA_CORRECTION else np.copy(pixels)
|
p = _gamma[pixels] if config.GAMMA_CORRECTION else np.copy(pixels)
|
||||||
# Send UDP packets when using ESP8266
|
# Send UDP packets when using ESP8266
|
||||||
|
Loading…
x
Reference in New Issue
Block a user