mirror of
https://github.com/meshtastic/python.git
synced 2026-04-23 16:27:21 -04:00
Add getter/setter for AmbientLighting Module
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user