mirror of
https://github.com/meshtastic/python.git
synced 2026-01-18 12:48:03 -05:00
Wait again, since we don't request config manually
This commit is contained in:
@@ -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."""
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user