From 900777c874dcfdcf382e230ae532911f6ac21fc0 Mon Sep 17 00:00:00 2001 From: Johannes Payr Date: Thu, 4 Nov 2021 15:33:31 +0200 Subject: [PATCH] Bugfixes back. --- pizzactrl/hal_serial.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pizzactrl/hal_serial.py b/pizzactrl/hal_serial.py index 6c405c0..1f5abe2 100644 --- a/pizzactrl/hal_serial.py +++ b/pizzactrl/hal_serial.py @@ -137,9 +137,9 @@ def wait_for_input(hal: PizzaHAL, go_callback: Any, :param timeout: inactivity timeout in seconds (default 120) """ resp = hal.send_cmd(SerialCommands.USER_INTERACTION, timeout).strip() - if resp == 'B': + if resp == b'B': go_callback(**kwargs) - elif resp == 'R': + elif resp == b'R': back_callback(**kwargs) else: to_callback(**kwargs)