From d319160c379ba46ff693b03bb5cdea98b35ec90f Mon Sep 17 00:00:00 2001 From: Fred C Date: Mon, 22 Apr 2024 13:04:13 -0700 Subject: [PATCH] Fix filters --- sa818.py | 3 ++- setup.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sa818.py b/sa818.py index 55705fc..ce600d3 100755 --- a/sa818.py +++ b/sa818.py @@ -161,7 +161,8 @@ def set_radio(self, opts): def set_filter(self, opts): _yn = {True: "Yes", False: "No"} # filters are pre-emphasis, high-pass, low-pass - cmd = f"{self.FILTER}={int(not opts.emphasis)},{int(opts.highpass)},{int(opts.lowpass)}" + cmd = (f"{self.FILTER}={int(not opts.emphasis)}," + f"{int(not opts.highpass)},{int(not opts.lowpass)}") self.send(cmd) time.sleep(1) response = self.readline() diff --git a/setup.py b/setup.py index 323bdc7..fe24161 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,7 @@ """ __author__ = "Fred C. (W6BSD)" -__version__ = '0.2.4' +__version__ = '0.2.5' __license__ = 'BSD' py_version = sys.version_info[:2]