Skip to content

Commit

Permalink
Cleanup to make pylint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
0x9900 committed Nov 20, 2024
1 parent 8d25c93 commit f9c3e40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ disable=raw-checker-failed,
missing-function-docstring,
missing-class-docstring,
missing-module-docstring,
too-many-positional-arguments

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down
6 changes: 2 additions & 4 deletions sa818.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ def __init__(self, port=None, baud=DEFAULT_BAUDRATE):
# Send initialization command and check the reply
self.send(self.INIT)
reply = self.readline()
if reply == "+DMOCONNECT:0":
# if expected response, proceed
break
else:
if reply != "+DMOCONNECT:0":
# if unexpected response, try another port
logger.debug("Port %s not SA818: %s", _port, reply)
self.serial.close()
Expand Down Expand Up @@ -133,6 +130,7 @@ def version(self):
return version

def set_radio(self, frequency, offset, bw, squelch, ctcss, dcs, tail):
# pylint: disable=too-many-locals
tone = ctcss if ctcss else dcs
if tone: # 0000 = No ctcss or dcs tone
tx_tone, rx_tone = tone
Expand Down

0 comments on commit f9c3e40

Please sign in to comment.