Add getter/setter for AmbientLighting Module

This commit is contained in:
GUVWAF
2023-11-02 20:35:57 +01:00
parent 236d30f7c1
commit e25b183c23
2 changed files with 6 additions and 0 deletions

View File

@@ -874,6 +874,10 @@ class MeshInterface:
self.localNode.moduleConfig.detection_sensor.CopyFrom(
fromRadio.moduleConfig.detection_sensor
)
elif fromRadio.moduleConfig.HasField("ambient_lighting"):
self.localNode.moduleConfig.ambient_lighting.CopyFrom(
fromRadio.moduleConfig.ambient_lighting
)
else:
logging.debug("Unexpected FromRadio payload")