From e66665c86d1d2b9cdb36f73feb104909cc3fc8db Mon Sep 17 00:00:00 2001 From: Marijn Doeve Date: Sun, 12 Jun 2022 15:38:24 +0200 Subject: [PATCH] Prints on no reponse --- serialdevice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serialdevice.py b/serialdevice.py index 48690c1..da0c207 100644 --- a/serialdevice.py +++ b/serialdevice.py @@ -26,9 +26,9 @@ class SerialDevice: else: response = "" - if self.verbose: - print(self.prefix, "resp:", response) if not response: print(self.prefix, "No response") + elif self.verbose: + print(self.prefix, "resp:", response) return response