mirror of
https://github.com/esphome/esphome.git
synced 2025-07-31 07:36:35 +00:00
cleanup
This commit is contained in:
parent
9a391df0f0
commit
f034069b5e
@ -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};"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user