Skip to content

Commit

Permalink
Fix filters
Browse files Browse the repository at this point in the history
  • Loading branch information
0x9900 committed Apr 22, 2024
1 parent b52a150 commit d319160
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion sa818.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"""

__author__ = "Fred C. (W6BSD)"
__version__ = '0.2.4'
__version__ = '0.2.5'
__license__ = 'BSD'

py_version = sys.version_info[:2]
Expand Down

0 comments on commit d319160

Please sign in to comment.