From f3f66c106b1616caa3c0b2466ff6a7fd40f058c9 Mon Sep 17 00:00:00 2001 From: Hendrik Radke Date: Tue, 18 Jul 2023 12:38:07 +0200 Subject: [PATCH] enable parity workaround for Linux systems The serial port parity workaround is not limited to Debian-based systems, but extends to other Linux distributions, too (e.g. Arch). Also, platform.system() is "Linux" on those systems, not "linux". --- printrun/printcore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/printrun/printcore.py b/printrun/printcore.py index da753850a..fe6e74486 100644 --- a/printrun/printcore.py +++ b/printrun/printcore.py @@ -171,7 +171,7 @@ def __init__(self, port = None, baud = None, dtr=None): # don't support it. Limit it to platforms that actually require it # here to avoid doing redundant work elsewhere and potentially breaking # things. - self.needs_parity_workaround = platform.system() == "linux" and os.path.exists("/etc/debian") + self.needs_parity_workaround = platform.system() == "Linux" for handler in self.event_handler: try: handler.on_init() except: logging.error(traceback.format_exc())