make --noproto work with new system

This commit is contained in:
Kevin Hester committed 2020-12-09 12:13:35 +08:00
1 parent 9ff8eb1771
commit 27466fc8b4
1 file changed
+3 -1
+3 -1
View File
@@ -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"""