Skip to content

Commit b73cc1f

Browse files
committed
Make it so wantconfig isn't a 1 in 4294967296 lottery for getting no nodes
1 parent 65305af commit b73cc1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

meshtastic/mesh_interface.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,8 @@ def _startConfig(self):
914914
startConfig = mesh_pb2.ToRadio()
915915
if self.configId is None or not self.noNodes:
916916
self.configId = random.randint(0, 0xFFFFFFFF)
917+
if self.configId == NODELESS_WANT_CONFIG_ID:
918+
self.configId = self.configId + 1
917919
startConfig.want_config_id = self.configId
918920
self._sendToRadio(startConfig)
919921

0 commit comments

Comments
 (0)