[midea] Use c++17 constexpr and inline static in IrFollowMeData (#10002)

This commit is contained in:
Djordje Mandic 2025-08-01 02:28:22 +02:00 committed by GitHub
parent d4ff1bcf5c
commit 412f4ac341
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,15 +54,15 @@ class IrFollowMeData : public IrData {
void set_fahrenheit(bool val) { this->set_mask_(2, val, 32); }
protected:
static const uint8_t MIN_TEMP_C = 0;
static const uint8_t MAX_TEMP_C = 37;
inline static constexpr uint8_t MIN_TEMP_C = 0;
inline static constexpr uint8_t MAX_TEMP_C = 37;
// see
// 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
// 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 {