[midea] apply suggested clang formatting

This commit is contained in:
Djordje 2024-11-13 22:22:38 +01:00
parent fb15a2a717
commit 98c53d6c6f
4 changed files with 11 additions and 6 deletions

View file

@ -23,7 +23,8 @@ template<typename... Ts> class FollowMeAction : public MideaActionBase<Ts...> {
TEMPLATABLE_VALUE(bool, beeper) TEMPLATABLE_VALUE(bool, beeper)
void play(Ts... x) override { void play(Ts... x) override {
this->parent_->do_follow_me(this->temperature_.value(x...), this->fahrenheit_.value(x...), this->beeper_.value(x...)); this->parent_->do_follow_me(this->temperature_.value(x...), this->fahrenheit_.value(x...),
this->beeper_.value(x...));
} }
}; };

View file

@ -58,9 +58,11 @@ class IrFollowMeData : public IrData {
static const uint8_t MIN_TEMP_C = 0; static const uint8_t MIN_TEMP_C = 0;
static const uint8_t MAX_TEMP_C = 37; static const uint8_t MAX_TEMP_C = 37;
// see https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L116 // see
// https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L116
static const uint8_t MIN_TEMP_F = 32; static const uint8_t MIN_TEMP_F = 32;
// see https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L117 // see
// https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L117
static const uint8_t MAX_TEMP_F = 99; static const uint8_t MAX_TEMP_F = 99;
}; };

View file

@ -104,9 +104,11 @@ class FollowMeData : public MideaData {
static const uint8_t MIN_TEMP_C = 0; static const uint8_t MIN_TEMP_C = 0;
static const uint8_t MAX_TEMP_C = 37; static const uint8_t MAX_TEMP_C = 37;
// see https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L116 // see
// https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L116
static const uint8_t MIN_TEMP_F = 32; static const uint8_t MIN_TEMP_F = 32;
// see https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L117 // see
// https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L117
static const uint8_t MAX_TEMP_F = 99; static const uint8_t MAX_TEMP_F = 99;
}; };