Skip to content
Snippets Groups Projects
Commit 68d4686d authored by chrissi^'s avatar chrissi^
Browse files

Really Disable RTS before opening port


Signed-off-by: default avatarChris Fiege <chris@tinyhost.de>
parent 4e1bcf3b
Branches master
No related tags found
No related merge requests found
......@@ -12,9 +12,13 @@ class SA868(object):
pass
def __init__(self, port):
self._serial = serial.Serial(port, 9200, timeout=1)
self._serial.RTS = False
self._logger = logging.getLogger("SA868")
self._serial = serial.Serial()
self._serial.rts = False
self._serial.port = port
self._serial.baudrate = 9600
self._serial.timeout = 1
self._serial.open()
def _check_freq_range(self, freq):
if (freq >= 400 and freq <= 480) or (freq >= 134 and freq <=174):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment