Files
andros 89f267daac Fix two bugs found in API doc review
- meshtastic-bridge.py: replace sys.exit(0) with os._exit(0) in
  _on_disconnect; the callback fires from meshtastic's background reader
  thread, and sys.exit() only raises SystemExit in that thread leaving
  the main stdin loop blocked indefinitely; os._exit terminates the
  whole process from any thread
- meshtastic-bridge.py: fix myInfo.myNodeNum -> myInfo.my_node_num in
  the _on_connection fallback; myInfo is a raw protobuf object whose
  fields use snake_case, so the camelCase access always raised
  AttributeError and the fallback never returned the actual node id
- tests: update _on_disconnect tests to mock os._exit via monkeypatch
  instead of catching SystemExit; fix myInfo.my_node_num in fallback test
2026-05-20 16:52:21 +02:00
..