1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 13:22:19 +01:00
This commit is contained in:
J. Nick Koston
2025-07-21 13:04:23 -10:00
parent 9a391df0f0
commit f034069b5e

View File

@@ -957,7 +957,7 @@ class FixedArrayRepeatedType(TypeInfo):
num_bytes = self._ti.get_fixed_size_bytes() num_bytes = self._ti.get_fixed_size_bytes()
if num_bytes is not None: if num_bytes is not None:
# Fixed types have constant size per element, so we can multiply # 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 # Pre-calculate the total bytes per element
bytes_per_element = field_id_size + num_bytes bytes_per_element = field_id_size + num_bytes
o = f"total_size += {self.array_size} * {bytes_per_element};" o = f"total_size += {self.array_size} * {bytes_per_element};"