From 0f8c300a324f1e0d78ee05f51ed3830c5e10a305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 14:06:53 +0100 Subject: [PATCH] fixed some shit in debugger MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- client/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/main.py b/client/main.py index da67c82..931600f 100644 --- a/client/main.py +++ b/client/main.py @@ -64,9 +64,9 @@ def update_led_strip(rgb_values, pixel, strip): def on_message(mqttc, obj, msg): rgb_values_list = eval(msg.payload.decode()) - print(tuple(eval(rgb_values_list[0]))) for pixel in range(LEDS_PER_PIXEL): - print("Updating pixel "+str(pixel)+" with values: "+str(tuple(eval(rgb_values_list[0])))) + print("Updating pixel "+str(pixel)+" with values: ") + print(tuple(eval(rgb_values_list[0]))) update_led_strip(tuple(eval(rgb_values_list[0])), pixel, strip) for pixel in range(LEDS_PER_PIXEL, LEDS_PER_PIXEL*2):