Skip to content

Commit

Permalink
Make it so wantconfig isn't a 1 in 4294967296 lottery for getting no …
Browse files Browse the repository at this point in the history
…nodes
  • Loading branch information
ianmcorvidae committed Oct 1, 2024
1 parent 65305af commit b73cc1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions meshtastic/mesh_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,8 @@ def _startConfig(self):
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)

Expand Down

0 comments on commit b73cc1f

Please sign in to comment.