From 04a23ae882e2f654eaf0ed5fc3d97b7b6e5b0116 Mon Sep 17 00:00:00 2001 From: pdxlocations <117498748+pdxlocations@users.noreply.github.com> Date: Mon, 2 Mar 2026 08:26:18 -0800 Subject: [PATCH] Update meshtastic/__main__.py Co-authored-by: Ian McEwen --- meshtastic/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshtastic/__main__.py b/meshtastic/__main__.py index 5bb6a0e..cd82ac4 100644 --- a/meshtastic/__main__.py +++ b/meshtastic/__main__.py @@ -1132,7 +1132,7 @@ def subscribe() -> None: # pub.subscribe(onNode, "meshtastic.node") def _is_repeated_field(field_desc) -> bool: - """Return True if the protobuf field is repeated. Protobuf 6:3.10 and later us an is_repeated property""" + """Return True if the protobuf field is repeated. Protobuf 6.31.0 and later use an is_repeated property, while older versions compare against the label field.""" if hasattr(field_desc, "is_repeated"): return bool(field_desc.is_repeated) return field_desc.label == field_desc.LABEL_REPEATED