From c265a4a5c5835886bf3bf0085c21924f0734bcf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 13 Feb 2024 21:16:54 +0100 Subject: [PATCH] changed len to range MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/exampleReceiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/exampleReceiver.py b/server/exampleReceiver.py index 493b416..5bed357 100644 --- a/server/exampleReceiver.py +++ b/server/exampleReceiver.py @@ -46,7 +46,7 @@ while True: # Then print out the data from each channel print("Received data: ", end="") - for i in len(dmxChannels): + for i in range(dmxChannels): # Lists in python start at 0, so to access a specific DMX channel you have to subtract one print(dmxPacket[i-1], end=" ")