Bugfixes back.
This commit is contained in:
parent
939a8b4e4a
commit
900777c874
1 changed files with 2 additions and 2 deletions
|
@ -137,9 +137,9 @@ def wait_for_input(hal: PizzaHAL, go_callback: Any,
|
||||||
:param timeout: inactivity timeout in seconds (default 120)
|
:param timeout: inactivity timeout in seconds (default 120)
|
||||||
"""
|
"""
|
||||||
resp = hal.send_cmd(SerialCommands.USER_INTERACTION, timeout).strip()
|
resp = hal.send_cmd(SerialCommands.USER_INTERACTION, timeout).strip()
|
||||||
if resp == 'B':
|
if resp == b'B':
|
||||||
go_callback(**kwargs)
|
go_callback(**kwargs)
|
||||||
elif resp == 'R':
|
elif resp == b'R':
|
||||||
back_callback(**kwargs)
|
back_callback(**kwargs)
|
||||||
else:
|
else:
|
||||||
to_callback(**kwargs)
|
to_callback(**kwargs)
|
||||||
|
|
Loading…
Reference in a new issue