Bugfixes back.

This commit is contained in:
Johannes Payr 2021-11-04 15:33:31 +02:00
parent 939a8b4e4a
commit 900777c874

View file

@ -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)