1

fix led hex(string) to hex(int)

This commit is contained in:
Ventilaar 2021-01-19 15:35:05 +01:00
parent 84467c00d0
commit 449b97b757

2
run.py
View File

@ -205,7 +205,7 @@ def api_ledstrip_set():
desired_state = request.form['setstate']
try:
desired_state = int('0x' + desired_state[1:])
desired_state = hex(int(desired_state[1:], 16))
hw_funcs.set_strip(desired_state)
except: