From 9c79f9d80e3dc0a21f870e892d7d10b9d24bf13e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Fri, 17 Jun 2022 10:54:31 +0200 Subject: [PATCH] Wait again, since we don't request config manually --- meshtastic/mesh_interface.py | 8 +++----- meshtastic/node.py | 1 - 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/meshtastic/mesh_interface.py b/meshtastic/mesh_interface.py index 506359a..1be5b60 100644 --- a/meshtastic/mesh_interface.py +++ b/meshtastic/mesh_interface.py @@ -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.""" diff --git a/meshtastic/node.py b/meshtastic/node.py index 936dc2b..ac14e7b 100644 --- a/meshtastic/node.py +++ b/meshtastic/node.py @@ -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