ok de led strip hoort nu perfect te werken
This commit is contained in:
parent
cdbfa40f4b
commit
666b66ca72
4
run.py
4
run.py
@ -204,8 +204,8 @@ def api_ledstrip_set():
|
||||
string_state = request.form['setstate']
|
||||
|
||||
try:
|
||||
# we ontvangen de volgenende waarde '#XXXXXX' maar de driver ondersteunt allen '0xFFFFFF'
|
||||
desired_state = hex(int(string_state[1:], 16))
|
||||
# we ontvangen de volgenende waarde '#XXXXXX' maar de driver ondersteunt alleen hex in integer
|
||||
desired_state = int(string_state[1:], 16)
|
||||
hw_funcs.set_strip(desired_state)
|
||||
except:
|
||||
|
||||
|
Reference in New Issue
Block a user