changed len to range

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-13 21:16:54 +01:00
parent 54acbb0b45
commit c265a4a5c5
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ while True:
# Then print out the data from each channel # Then print out the data from each channel
print("Received data: ", end="") 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 # Lists in python start at 0, so to access a specific DMX channel you have to subtract one
print(dmxPacket[i-1], end=" ") print(dmxPacket[i-1], end=" ")