added encoding

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-18 01:07:15 +01:00
parent c4f980a2f5
commit 0468eab30c
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ def tube_index_updater(shared_mem):
cur.execute("SELECT mac_address, universe, dmx_address FROM tubes")
tube_index = cur.fetchall()
cur.close()
shared_mem.buf[:24] = bytes(str(tube_index))
shared_mem.buf[:24] = bytes(str(tube_index), encoding='utf8')
print("Updated tube index with values: "+str(tube_index))
except Exception as e:
print(e)