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

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)