Merge pull request #5 from AkitaEngineering/examples/config-templates

fix: update _on_meshtastic_receive method to include weak reference p…
This commit is contained in:
sh4un
2026-01-28 18:37:24 -05:00
committed by GitHub

View File

@@ -184,7 +184,7 @@ class MeshtasticHandler:
self.logger.info("Meshtastic handler stopped.")
def _on_meshtastic_receive(self, packet: Dict[str, Any], interface: Any):
def _on_meshtastic_receive(self, packet: Dict[str, Any], interface: Any, weak=None):
try:
if not packet or "from" not in packet:
return