Skip to content

Conversation

@SpudGunMan
Copy link
Contributor

To set the index 0 name to the preset name from localConfig.lora.modem_preset when empty

and compute hash so the output will not have bad index0 name or hash, also removes all disabled for clarity.

This outputs Device1 Channel Hash Table: [{'index': 0, 'role': 'PRIMARY', 'name': 'LongFast', 'hash': 8} for a LongFast

To set the index 0 name to the preset name from localConfig.lora.modem_prese and compute hash so the output will not have bad index0 name or hash, also removes all disabled for clarity. this outputs `Device1 Channel Hash Table: [{'index': 0, 'role': 'PRIMARY', 'name': 'LongFast', 'hash': 8}` for a LongFast
Copy link
Contributor

@ianmcorvidae ianmcorvidae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of issues here -- the generated names won't always be right as-is and this needs to be done for secondary channels too. But a good change in general/otherwise

SpudGunMan and others added 2 commits November 12, 2025 10:21
Co-authored-by: Ian McEwen <[email protected]>
modem preset is set to none, the name used should be Custom
SpudGunMan added a commit to SpudGunMan/python that referenced this pull request Nov 23, 2025
refactoring per comments in meshtastic#859
@SpudGunMan
Copy link
Contributor Author

A couple of issues here -- the generated names won't always be right as-is and this needs to be done for secondary channels too. But a good change in general/otherwise

refactored to handle issues I hope?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants