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 12:00:29 -10:00
parent 94414e767c
commit 02b626ae1a

View File

@@ -1478,7 +1478,7 @@ class RepeatedTypeInfo(TypeInfo):
return None return None
return ( return (
f"case {self.number}: " f"case {self.number}: "
f"if (static_cast<uint8_t>({content}) <= 31) " f"if (static_cast<uint8_t>({content}) < 32) "
f"this->{self.field_name} |= (1U << static_cast<uint8_t>({content})); " f"this->{self.field_name} |= (1U << static_cast<uint8_t>({content})); "
f"break;" f"break;"
) )