fixing config file when starting from daemon.py

This commit is contained in:
DJ2LS 2022-12-08 16:14:59 +01:00
parent 83b3f6a71c
commit 4c69b748d5
2 changed files with 5 additions and 1 deletions

View file

@ -45,7 +45,8 @@ class CONFIG:
self.config['STATION'] = {'#Station settings': None, self.config['STATION'] = {'#Station settings': None,
'mycall': data[1], 'mycall': data[1],
'mygrid': data[2] 'mygrid': data[2],
'ssid_list': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] # list(data[26])
} }
self.config['AUDIO'] = {'#Audio settings': None, self.config['AUDIO'] = {'#Audio settings': None,

View file

@ -251,6 +251,9 @@ class DAEMON:
if data[25] == "True": if data[25] == "True":
options.append("--explorer") options.append("--explorer")
options.append("--ssid_list")
options.append(data[26])
# safe data to config file # safe data to config file
config.write_entire_config(data) config.write_entire_config(data)