Skip to content

Commit 04a23ae

Browse files
Update meshtastic/__main__.py
Co-authored-by: Ian McEwen <[email protected]>
1 parent b003214 commit 04a23ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

meshtastic/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ def subscribe() -> None:
11321132
# pub.subscribe(onNode, "meshtastic.node")
11331133

11341134
def _is_repeated_field(field_desc) -> bool:
1135-
"""Return True if the protobuf field is repeated. Protobuf 6:3.10 and later us an is_repeated property"""
1135+
"""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."""
11361136
if hasattr(field_desc, "is_repeated"):
11371137
return bool(field_desc.is_repeated)
11381138
return field_desc.label == field_desc.LABEL_REPEATED

0 commit comments

Comments
 (0)