From 6d6581991d75abd03712ca58b1edf40eab184ca3 Mon Sep 17 00:00:00 2001 From: Valentin Ochs Date: Sun, 6 Nov 2022 18:27:26 +0100 Subject: [PATCH] ASCII --- door_pi_control/nfc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/door_pi_control/nfc.py b/door_pi_control/nfc.py index 5c80ab7..cf4caf1 100644 --- a/door_pi_control/nfc.py +++ b/door_pi_control/nfc.py @@ -25,7 +25,7 @@ class DoorControlNfc(util.Loggable): def _open_nfc_fifo(self) -> IO: """Opens config.nfc_fifo as the FIFO through which detected tokens are passed in.""" self._logger().debug(f"Opening FIFO {self._config.nfc_fifo}") - return open(self._config.nfc_fifo, "rb") + return open(self._config.nfc_fifo, "r") def _read_valid_tokens(self) -> Container: """Refreshes all tokens from config.valid_tokens"""