mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
fix for missing types at esp32 platform
This commit is contained in:
parent
0e30e119a0
commit
986b9d258a
1 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ void OptolinkNumber::datapoint_value_changed(uint8_t state) {
|
|||
if (traits.get_min_value() >= 0) {
|
||||
publish_state(state);
|
||||
} else {
|
||||
publish_state((sint8_t) state);
|
||||
publish_state((int8_t) state);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -31,7 +31,7 @@ void OptolinkNumber::datapoint_value_changed(uint16_t state) {
|
|||
if (traits.get_min_value() >= 0) {
|
||||
publish_state(state);
|
||||
} else {
|
||||
publish_state((sint16_t) state);
|
||||
publish_state((int16_t) state);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -39,7 +39,7 @@ void OptolinkNumber::datapoint_value_changed(uint32_t state) {
|
|||
if (traits.get_min_value() >= 0) {
|
||||
publish_state(state);
|
||||
} else {
|
||||
publish_state((sint32_t) state);
|
||||
publish_state((int32_t) state);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue