From 68c2a66fa6ca2063c2b67086529db532ce6a0550 Mon Sep 17 00:00:00 2001 From: Scott Lawson Date: Tue, 3 Jan 2017 16:35:43 -0800 Subject: [PATCH] Replaced instance of 'long' type with 'int' for python 2 to 3 compatibility --- python/led.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/led.py b/python/led.py index 90921e7..1937be5 100644 --- a/python/led.py +++ b/python/led.py @@ -44,7 +44,7 @@ def _update_esp8266(): """ global pixels, _prev_pixels # 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 p = _gamma[pixels] if config.GAMMA_CORRECTION else np.copy(pixels) # Send UDP packets when using ESP8266