Wait again, since we don't request config manually

This commit is contained in:
Thomas Göttgens
2022-06-17 10:54:31 +02:00
parent c55b1188e8
commit 9c79f9d80e
2 changed files with 3 additions and 6 deletions

View File

@@ -362,11 +362,9 @@ class MeshInterface:
def waitForConfig(self):
"""Block until radio config is received. Returns True if config has been received."""
# TODO
return True
#success = self._timeout.waitForSet(self, attrs=('myInfo', 'nodes')) and self.localNode.waitForConfig()
#if not success:
#raise Exception("Timed out waiting for interface config")
success = self._timeout.waitForSet(self, attrs=('myInfo', 'nodes')) and self.localNode.waitForConfig()
if not success:
raise Exception("Timed out waiting for interface config")
def getMyNodeInfo(self):
"""Get info about my node."""

View File

@@ -64,7 +64,6 @@ class Node:
"""Send regular MeshPackets to ask for settings and channels."""
logging.debug(f"requestConfig for nodeNum:{self.nodeNum}")
self.radioConfig = None
self.partialConfig = []
self.channels = None
self.partialChannels = [] # We keep our channels in a temp array until finished