debug some shit

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 00:58:45 +01:00
parent b65f5c3468
commit 19e37b2b88
2 changed files with 3 additions and 0 deletions

View File

@ -98,6 +98,7 @@ def loopCheckSettingUpdates():
global universe
global dmx_address
universe, dmx_address = get_assigned_params()
print(universe, dmx_address)
except Exception as e:
print(f"Error: {e}")
time.sleep(2)

View File

@ -50,6 +50,8 @@ def register_tube(mac_address):
cur.execute("SELECT * FROM tubes WHERE mac_address = %s", (mac_address,))
existing_tube = cur.fetchone()
print(existing_tube)
if existing_tube:
# Tube already exists, do nothing for now
pass