From 27466fc8b4f2cea376dc45a2e6eba8d1071e4c63 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Wed, 9 Dec 2020 12:13:35 +0800 Subject: [PATCH] make --noproto work with new system --- meshtastic/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meshtastic/__init__.py b/meshtastic/__init__.py index 7f9202d..d00da1b 100644 --- a/meshtastic/__init__.py +++ b/meshtastic/__init__.py @@ -107,6 +107,7 @@ class MeshInterface: self.debugOut = debugOut self.nodes = None # FIXME self.isConnected = threading.Event() + self.noProto = noProto if not noProto: self._startConfig() @@ -598,7 +599,8 @@ class StreamInterface(MeshInterface): time.sleep(0.1) # wait 100ms to give device time to start running self._rxThread.start() - self._waitConnected() + if not self.noProto: # Wait for the db download if using the protocol + self._waitConnected() def _disconnected(self): """We override the superclass implementation to close our port"""