Missed some spots

This commit is contained in:
Ben Meadors
2022-08-15 20:54:11 -05:00
parent 0746acd34f
commit 4965ec7f1d
5 changed files with 60 additions and 42 deletions

16
.vscode/launch.json vendored
View File

@@ -76,6 +76,22 @@
"justMyCode": true,
"args": ["--debug", "--set", "lora.region", "TW"]
},
{
"name": "meshtastic debug set bluetooth fixed pin",
"type": "python",
"request": "launch",
"module": "meshtastic",
"justMyCode": true,
"args": ["--debug", "--set", "bluetooth.fixed_pin", "555555"]
},
{
"name": "meshtastic debug get bluetooth fixed pin",
"type": "python",
"request": "launch",
"module": "meshtastic",
"justMyCode": true,
"args": ["--debug", "--get", "bluetooth.fixed_pin"]
},
{
"name": "meshtastic debug setPref",
"type": "python",

View File

@@ -556,6 +556,8 @@ class MeshInterface:
self.localNode.localConfig.display.CopyFrom(fromRadio.config.display)
elif fromRadio.config.HasField("lora"):
self.localNode.localConfig.lora.CopyFrom(fromRadio.config.lora)
elif fromRadio.config.HasField("bluetooth"):
self.localNode.localConfig.bluetooth.CopyFrom(fromRadio.config.bluetooth)
elif fromRadio.moduleConfig.HasField("mqtt"):
self.localNode.moduleConfig.mqtt.CopyFrom(fromRadio.moduleConfig.mqtt)

View File

File diff suppressed because one or more lines are too long

View File

@@ -127,7 +127,7 @@ class Node:
if self.localConfig.bluetooth:
p = admin_pb2.AdminMessage()
p.set_config.lora.CopyFrom(self.localConfig.bluetooth)
p.set_config.bluetooth.CopyFrom(self.localConfig.bluetooth)
self._sendAdmin(p)
logging.debug("Wrote bluetooth")
time.sleep(0.3)

2
proto

Submodule proto updated: d8a5c17297...2fadf011e5