diff --git a/owrx/rigcontrol.py b/owrx/rigcontrol.py index fb6136af..29016f6c 100644 --- a/owrx/rigcontrol.py +++ b/owrx/rigcontrol.py @@ -422,7 +422,8 @@ class RigControl(): readable, _, _ = select.select([self.rigctl.stdout, self.rigctl.stderr], [], []) for pipe in readable: rsp = pipe.read().decode("utf-8").strip() - logger.debug("STD{0}: {1}".format("ERR" if pipe==self.rigctl.stderr else "OUT", rsp)) + if len(rsp) > 0: + logger.debug("STD{0}: {1}".format("ERR" if pipe==self.rigctl.stderr else "OUT", rsp)) except Exception as e: logger.debug("RigControl thread done: {1}.".format(str(e))) break