mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-03-05 20:51:53 -08:00
Update config_init.py
work for disabling modules from config.ini
This commit is contained in:
parent
c73d26d764
commit
418b52111a
|
@ -110,7 +110,11 @@ def initialize_config(config_file:str = None) -> dict[str, Any]:
|
|||
if bbs_nodes == ['']:
|
||||
bbs_nodes = []
|
||||
|
||||
return {'config':config, 'interface_type': interface_type, 'hostname': hostname, 'port': port, 'bbs_nodes': bbs_nodes, 'mqtt_topic': 'meshtastic.receive'}
|
||||
disabled = config.get('modules', 'disabled', fallback='').split(',')
|
||||
if disabled == ['']:
|
||||
disabled = []
|
||||
|
||||
return {'config':config, 'interface_type': interface_type, 'hostname': hostname, 'port': port, 'bbs_nodes': bbs_nodes, 'disabled': disabled, 'mqtt_topic': 'meshtastic.receive'}
|
||||
|
||||
|
||||
def get_interface(system_config:dict[str, Any]) -> meshtastic.stream_interface.StreamInterface:
|
||||
|
|
Loading…
Reference in a new issue