From b73cc1f4992d029b1ad6cd940e519beb5eff500f Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Tue, 1 Oct 2024 14:00:06 -0700 Subject: [PATCH] Make it so wantconfig isn't a 1 in 4294967296 lottery for getting no nodes --- meshtastic/mesh_interface.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meshtastic/mesh_interface.py b/meshtastic/mesh_interface.py index ba20e29..db057a3 100644 --- a/meshtastic/mesh_interface.py +++ b/meshtastic/mesh_interface.py @@ -914,6 +914,8 @@ class MeshInterface: # pylint: disable=R0902 startConfig = mesh_pb2.ToRadio() if self.configId is None or not self.noNodes: self.configId = random.randint(0, 0xFFFFFFFF) + if self.configId == NODELESS_WANT_CONFIG_ID: + self.configId = self.configId + 1 startConfig.want_config_id = self.configId self._sendToRadio(startConfig)