[number] Reduce NumberCall size by 4 bytes on 32-bit platforms (#12178)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -8,7 +8,7 @@ namespace esphome::number {
|
||||
|
||||
class Number;
|
||||
|
||||
enum NumberOperation {
|
||||
enum NumberOperation : uint8_t {
|
||||
NUMBER_OP_NONE,
|
||||
NUMBER_OP_SET,
|
||||
NUMBER_OP_INCREMENT,
|
||||
@@ -38,9 +38,9 @@ class NumberCall {
|
||||
float limit);
|
||||
|
||||
Number *const parent_;
|
||||
NumberOperation operation_{NUMBER_OP_NONE};
|
||||
optional<float> value_;
|
||||
bool cycle_;
|
||||
NumberOperation operation_{NUMBER_OP_NONE};
|
||||
bool cycle_{false};
|
||||
};
|
||||
|
||||
} // namespace esphome::number
|
||||
|
||||
Reference in New Issue
Block a user