mirror of
https://github.com/esphome/esphome.git
synced 2025-10-22 11:43:51 +01:00
preen
This commit is contained in:
@@ -913,7 +913,7 @@ void ListEntitiesLightResponse::dump_to(std::string &out) const {
|
|||||||
dump_field(out, "object_id", this->object_id_ref_);
|
dump_field(out, "object_id", this->object_id_ref_);
|
||||||
dump_field(out, "key", this->key);
|
dump_field(out, "key", this->key);
|
||||||
dump_field(out, "name", this->name_ref_);
|
dump_field(out, "name", this->name_ref_);
|
||||||
char buffer[32];
|
char buffer[64];
|
||||||
snprintf(buffer, sizeof(buffer), " supported_color_modes: 0x%08" PRIX32 "\n", this->supported_color_modes);
|
snprintf(buffer, sizeof(buffer), " supported_color_modes: 0x%08" PRIX32 "\n", this->supported_color_modes);
|
||||||
out.append(buffer);
|
out.append(buffer);
|
||||||
dump_field(out, "min_mireds", this->min_mireds);
|
dump_field(out, "min_mireds", this->min_mireds);
|
||||||
|
@@ -1564,7 +1564,7 @@ class RepeatedTypeInfo(TypeInfo):
|
|||||||
if self._use_bitmask:
|
if self._use_bitmask:
|
||||||
# For bitmask fields, dump the hex value of the bitmask
|
# For bitmask fields, dump the hex value of the bitmask
|
||||||
return (
|
return (
|
||||||
f"char buffer[32];\n"
|
f"char buffer[64];\n"
|
||||||
f'snprintf(buffer, sizeof(buffer), " {self.field_name}: 0x%08" PRIX32 "\\n", this->{self.field_name});\n'
|
f'snprintf(buffer, sizeof(buffer), " {self.field_name}: 0x%08" PRIX32 "\\n", this->{self.field_name});\n'
|
||||||
f"out.append(buffer);"
|
f"out.append(buffer);"
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user