diff --git a/meshtastic/mesh_interface.py b/meshtastic/mesh_interface.py index f5063360..1090fc09 100644 --- a/meshtastic/mesh_interface.py +++ b/meshtastic/mesh_interface.py @@ -878,6 +878,10 @@ def _handleFromRadio(self, fromRadioBytes): self.localNode.moduleConfig.ambient_lighting.CopyFrom( fromRadio.moduleConfig.ambient_lighting ) + elif fromRadio.moduleConfig.HasField("paxcounter"): + self.localNode.moduleConfig.paxcounter.CopyFrom( + fromRadio.moduleConfig.paxcounter + ) else: logging.debug("Unexpected FromRadio payload") diff --git a/meshtastic/node.py b/meshtastic/node.py index 873010f7..c12f7779 100644 --- a/meshtastic/node.py +++ b/meshtastic/node.py @@ -194,6 +194,8 @@ def writeConfig(self, config_name): p.set_module_config.detection_sensor.CopyFrom(self.moduleConfig.detection_sensor) elif config_name == "ambient_lighting": p.set_module_config.ambient_lighting.CopyFrom(self.moduleConfig.ambient_lighting) + elif config_name == "paxcounter": + p.set_module_config.paxcounter.CopyFrom(self.moduleConfig.paxcounter) else: our_exit(f"Error: No valid config with name {config_name}")