diff --git a/script/api_protobuf/api_protobuf.py b/script/api_protobuf/api_protobuf.py index cb87ddda3b..ab96ecd62b 100755 --- a/script/api_protobuf/api_protobuf.py +++ b/script/api_protobuf/api_protobuf.py @@ -957,7 +957,7 @@ class FixedArrayRepeatedType(TypeInfo): num_bytes = self._ti.get_fixed_size_bytes() if num_bytes is not None: # Fixed types have constant size per element, so we can multiply - field_id_size = self._ti.calculate_field_id_size() + field_id_size = self.calculate_field_id_size() # Pre-calculate the total bytes per element bytes_per_element = field_id_size + num_bytes o = f"total_size += {self.array_size} * {bytes_per_element};"