Allow a faster nodedb-less startup on 2.3.11+ with --no-nodes and the magic value from meshtastic/firmware#3949

This commit is contained in:
Ian McEwen
2024-06-05 18:52:35 -07:00
parent ee857c5128
commit e6d61c6603
7 changed files with 30 additions and 14 deletions

View File

@@ -17,6 +17,7 @@ class TCPInterface(StreamInterface):
noProto=False,
connectNow=True,
portNumber=4403,
noNodes:bool=False,
):
"""Constructor, opens a connection to a specified IP address/hostname
@@ -38,7 +39,7 @@ class TCPInterface(StreamInterface):
self.socket = None
StreamInterface.__init__(
self, debugOut=debugOut, noProto=noProto, connectNow=connectNow
self, debugOut=debugOut, noProto=noProto, connectNow=connectNow, noNodes=noNodes
)
def _socket_shutdown(self):