mirror of
https://github.com/esphome/esphome.git
synced 2025-08-02 08:27:47 +00:00
[midea] Use c++17 constexpr and inline static in IrFollowMeData (#10002)
This commit is contained in:
parent
d4ff1bcf5c
commit
412f4ac341
@ -54,15 +54,15 @@ class IrFollowMeData : public IrData {
|
|||||||
void set_fahrenheit(bool val) { this->set_mask_(2, val, 32); }
|
void set_fahrenheit(bool val) { this->set_mask_(2, val, 32); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static const uint8_t MIN_TEMP_C = 0;
|
inline static constexpr uint8_t MIN_TEMP_C = 0;
|
||||||
static const uint8_t MAX_TEMP_C = 37;
|
inline static constexpr uint8_t MAX_TEMP_C = 37;
|
||||||
|
|
||||||
// see
|
// see
|
||||||
// https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L116
|
// https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L116
|
||||||
static const uint8_t MIN_TEMP_F = 32;
|
inline static constexpr uint8_t MIN_TEMP_F = 32;
|
||||||
// see
|
// see
|
||||||
// https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L117
|
// https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L117
|
||||||
static const uint8_t MAX_TEMP_F = 99;
|
inline static constexpr uint8_t MAX_TEMP_F = 99;
|
||||||
};
|
};
|
||||||
|
|
||||||
class IrSpecialData : public IrData {
|
class IrSpecialData : public IrData {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user