1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-21 19:23:45 +01:00
This commit is contained in:
J. Nick Koston
2025-10-18 10:41:37 -10:00
parent 98df9fd2ff
commit 13e9d0c851
2 changed files with 6 additions and 6 deletions

View File

@@ -1564,9 +1564,9 @@ class RepeatedTypeInfo(TypeInfo):
if self._use_bitmask:
# For bitmask fields, dump the hex value of the bitmask
return (
f'out.append(" {self.field_name}: 0x");\n'
f"out.append(uint32_to_string(this->{self.field_name}));\n"
f'out.append("\\n");'
f"char buffer[32];\n"
f'snprintf(buffer, sizeof(buffer), " {self.field_name}: 0x%08" PRIX32 "\\n", this->{self.field_name});\n'
f"out.append(buffer);"
)
if self._use_pointer:
# For pointer fields, dereference and use the existing helper