fixed tuple

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 04:00:38 +01:00
parent 17c17c9c39
commit d13753d001
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ def update_led_strip(rgb_values, pixel, strip):
print("Updated pixel "+str(pixel)+" with "+str(rgb_values))
def on_message(mqttc, obj, msg):
rgb_values = list(msg.payload.decode())
rgb_values = tuple(msg.payload.decode())
if msg.topic == "tube-"+wlan_mac_address+"/p1":
for pixel in range(LEDS_PER_PIXEL):
update_led_strip(rgb_values, pixel, strip)