mirror of
https://github.com/esphome/esphome.git
synced 2026-09-14 16:48:40 +00:00
[api] Remove redundant uint32_t cast in enum raw byte writes
This commit is contained in:
@@ -1342,7 +1342,7 @@ class EnumType(TypeInfo):
|
||||
return (
|
||||
f"if (this->{self.field_name}) {{\n"
|
||||
f" buffer.write_raw_byte({tag});\n"
|
||||
f" buffer.write_raw_byte(static_cast<uint8_t>({value_expr}));\n"
|
||||
f" buffer.write_raw_byte(static_cast<uint8_t>(this->{self.field_name}));\n"
|
||||
f"}}"
|
||||
)
|
||||
if self.force:
|
||||
|
||||
Reference in New Issue
Block a user