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

@@ -32,7 +32,7 @@ class BLEInterface(MeshInterface):
MESH = False
def __init__(self, address: Optional[str], noProto: bool = False, debugOut = None):
def __init__(self, address: Optional[str], noProto: bool = False, debugOut = None, noNodes: bool = False):
self.state = BLEInterface.BLEState()
if not address:
@@ -60,7 +60,7 @@ class BLEInterface(MeshInterface):
return
logging.debug("Mesh init starting")
MeshInterface.__init__(self, debugOut = debugOut, noProto = noProto)
MeshInterface.__init__(self, debugOut = debugOut, noProto = noProto, noNodes = noNodes)
self._startConfig()
if not self.noProto:
self._waitConnected(timeout = 60.0)