diff --git a/src/IRac.cpp b/src/IRac.cpp index f737c6077..c56aca31d 100644 --- a/src/IRac.cpp +++ b/src/IRac.cpp @@ -2613,7 +2613,8 @@ bool IRac::sendAc(const stdAc::state_t desired, const stdAc::state_t *prev) { case KELON: { IRKelonAc ac(_pin, _inverted, _modulation); kelon(&ac, send.mode, send.degrees, send.fanspeed, send.sleep, - send.turbo, 0, send.power, send.swingv != stdAc::swingv_t::kOff); + send.turbo, 0, send.power, + send.swingv != stdAc::swingv_t::kOff); break; } #endif diff --git a/src/IRac.h b/src/IRac.h index 77c6c2e17..3e0d6720a 100644 --- a/src/IRac.h +++ b/src/IRac.h @@ -293,8 +293,9 @@ void electra(IRElectraAc *ac, #if SEND_KELON void kelon(IRKelonAc *ac, const stdAc::opmode_t mode, const float degrees, - const stdAc::fanspeed_t fan, const bool sleep, const bool superCool, - const int8_t dryGrade, const bool togglePower, const bool toggleSwing); + const stdAc::fanspeed_t fan, const bool sleep, + const bool superCool, const int8_t dryGrade, + const bool togglePower, const bool toggleSwing); #endif // SEND_KELON #if SEND_KELVINATOR void kelvinator(IRKelvinatorAC *ac, diff --git a/src/ir_Kelon.cpp b/src/ir_Kelon.cpp index e9483022e..829160d9b 100644 --- a/src/ir_Kelon.cpp +++ b/src/ir_Kelon.cpp @@ -56,7 +56,7 @@ void IRsend::sendKelon(const uint64_t data, const uint16_t nbits, repeat, 50); } -#endif // SEND_KELON +#endif // SEND_KELON #if DECODE_KELON /// Decode the supplied Kelon message. @@ -151,7 +151,7 @@ void IRKelonAc::ensurePower(bool on) { } } -#endif // SEND_KELON +#endif // SEND_KELON /// Set up hardware to be able to send a message. void IRKelonAc::begin() { @@ -251,7 +251,7 @@ void IRKelonAc::setMode(const uint8_t mode) { case kKelonModeDry: case kKelonModeFan: setTemp(25); - //fallthrough + // fallthrough case kKelonModeCool: case kKelonModeHeat: _.Mode = mode; @@ -453,8 +453,8 @@ stdAc::state_t IRKelonAc::toCommon() const { result.turbo = getSupercool(); result.sleep = getSleep() ? 0 : -1; // Not supported. - result.power = true; // N/A, AC only supports toggling it - result.swingv = stdAc::swingv_t::kAuto; // N/A, AC only supports toggling it + result.power = true; // N/A, AC only supports toggling it + result.swingv = stdAc::swingv_t::kAuto; // N/A, AC only supports toggling it // N/A, horizontal air direction can only be set by manually adjusting it result.swingh = stdAc::swingh_t::kOff; result.light = true; diff --git a/src/ir_Kelon.h b/src/ir_Kelon.h index 69c901858..a88eff639 100644 --- a/src/ir_Kelon.h +++ b/src/ir_Kelon.h @@ -2,7 +2,8 @@ /// @file /// @brief Support for Kelan AC protocol. -/// Both sending and decoding should be functional for models of series KELON ON/OFF 9000-12000. +/// Both sending and decoding should be functional for models of series KELON +/// ON/OFF 9000-12000. /// All features of the standard remote are implemented. /// /// @note Unsupported: @@ -54,7 +55,8 @@ const uint8_t kKelonModeDry = 3; // (temp = 25C, but not shown) const uint8_t kKelonModeFan = 4; // (temp = 25C, but not shown) const uint8_t kKelonFanAuto = 0; // Note! Kelon fan speeds are actually 0:AUTO, 1:MAX, 2:MED, 3:MIN -// Since this is insane, I decided to invert them in the public API, they are converted back in setFan/getFan +// Since this is insane, I decided to invert them in the public API, they are +// converted back in setFan/getFan const uint8_t kKelonFanMin = 1; const uint8_t kKelonFanMedium = 2; const uint8_t kKelonFanMax = 3; @@ -66,8 +68,9 @@ const uint8_t kKelonMaxTemp = 32; class IRKelonAc { -public: - explicit IRKelonAc(uint16_t pin, bool inverted = false, bool use_modulation = true); + public: + explicit IRKelonAc(uint16_t pin, bool inverted = false, + bool use_modulation = true); void stateReset(void); @@ -148,7 +151,7 @@ class IRKelonAc { String toString(void) const; -private: + private: #ifndef UNIT_TEST IRsend _irsend; ///< Instance of the IR send class #else // UNIT_TEST @@ -164,4 +167,4 @@ class IRKelonAc { uint8_t _previousFan = kKelonFanAuto; }; -#endif // IR_KELON_H_ +#endif // IR_KELON_H_