Skip to content

Commit 1c9cf37

Browse files
authored
Merge pull request #907 from cpatulea/get-security
Fix '--get security' (incorrect AdminMessage.ConfigType value).
2 parents fee2b6c + 942ce11 commit 1c9cf37

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

meshtastic/node.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,10 @@ def requestConfig(self, configType):
170170
p.get_config_request = configType
171171

172172
else:
173-
msgIndex = configType.index
174173
if configType.containing_type.name == "LocalConfig":
175-
p.get_config_request = msgIndex
174+
p.get_config_request = admin_pb2.AdminMessage.ConfigType.Value(configType.name.upper() + "_CONFIG")
176175
else:
177-
p.get_module_config_request = msgIndex
176+
p.get_module_config_request = configType.index
178177

179178
self._sendAdmin(p, wantResponse=True, onResponse=onResponse)
180179
if onResponse:

0 commit comments

Comments
 (0)