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