python
python copied to clipboard
Enhance get_channels_with_hash()
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
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?