From a455cdcf37730dc2d17f87841f24db4b136229d6 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com> Date: Sat, 1 Oct 2016 09:53:54 -0400 Subject: [PATCH] Added control logic to allow kiss to reconnect to a non-kiss port without throwing an exception. --- src/apex/kiss/kiss_serial.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/apex/kiss/kiss_serial.py b/src/apex/kiss/kiss_serial.py index 186e217..b99dc45 100644 --- a/src/apex/kiss/kiss_serial.py +++ b/src/apex/kiss/kiss_serial.py @@ -92,6 +92,8 @@ class KissSerial(Kiss): if mode_init is not None: self.serial.write(mode_init) self.exit_kiss = True + else: + self.exit_kiss = False # Previous verious defaulted to Xastir-friendly configs. Unfortunately # those don't work with Bluetooth TNCs, so we're reverting to None. -- GitLab