diff --git a/serialtool/_prog.py b/serialtool/_prog.py index d6cc6122..5ee82b42 100644 --- a/serialtool/_prog.py +++ b/serialtool/_prog.py @@ -34,7 +34,7 @@ class Programmer: def loop(self) -> bool: next = self._state.loop() - if isinstance(next, str) and "quit" == _QUIT: + if isinstance(next, str) and next == _QUIT: return False if next: