Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Enhance get_channels_with_hash() #859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
SpudGunMan wants to merge 3 commits into meshtastic:master
base: master
Choose a base branch
Loading
from SpudGunMan:master

Conversation

@SpudGunMan
Copy link
Contributor

@SpudGunMan SpudGunMan commented Nov 12, 2025

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 reacted with thumbs up emoji
SpudGunMan and others added 2 commits November 12, 2025 10:21
Co-authored-by: Ian McEwen <ian@ianmcorvidae.net>
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 
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

Reviewers

@ianmcorvidae ianmcorvidae ianmcorvidae requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /