diff --git a/src/IRac.cpp b/src/IRac.cpp index 843227e9c..b4781dd46 100644 --- a/src/IRac.cpp +++ b/src/IRac.cpp @@ -4181,6 +4181,14 @@ namespace IRAcUtils { break; } #endif // DECODE_PANASONIC_AC32 +#if DECODE_RHOSS + case decode_type_t::RHOSS: { + IRRhossAc ac(kGpioUnused); + ac.setRaw(decode->state); + *result = ac.toCommon(); + break; + } +#endif // DECODE_RHOSS #if DECODE_SAMSUNG_AC case decode_type_t::SAMSUNG_AC: { IRSamsungAc ac(kGpioUnused); @@ -4305,14 +4313,6 @@ namespace IRAcUtils { break; } #endif // DECODE_TRANSCOLD -#if DECODE_RHOSS - case decode_type_t::RHOSS: { - IRRhossAc ac(kGpioUnused); - ac.setRaw(decode->state); - *result = ac.toCommon(); - break; - } -#endif // DECODE_RHOSS default: return false; } diff --git a/src/IRac.h b/src/IRac.h index dbe70b2a5..7ef3adf4a 100644 --- a/src/IRac.h +++ b/src/IRac.h @@ -30,6 +30,7 @@ #include "ir_MitsubishiHeavy.h" #include "ir_Neoclima.h" #include "ir_Panasonic.h" +#include "ir_Rhoss.h" #include "ir_Samsung.h" #include "ir_Sanyo.h" #include "ir_Sharp.h" @@ -43,7 +44,6 @@ #include "ir_Vestel.h" #include "ir_Voltas.h" #include "ir_Whirlpool.h" -#include "ir_Rhoss.h" // Constants const int8_t kGpioUnused = -1; ///< A placeholder for not using an actual GPIO. @@ -388,6 +388,11 @@ void electra(IRElectraAc *ac, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh); #endif // SEND_PANASONIC_AC32 +#if SEND_RHOSS + void rhoss(IRRhossAc *ac, + const bool on, const stdAc::opmode_t mode, const float degrees, + const stdAc::fanspeed_t fan, const stdAc::swingv_t swing); +#endif // SEND_RHOSS #if SEND_SAMSUNG_AC void samsung(IRSamsungAc *ac, const bool on, const stdAc::opmode_t mode, const float degrees, @@ -490,11 +495,6 @@ void electra(IRElectraAc *ac, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh); #endif // SEND_TRANSCOLD -#if SEND_RHOSS - void rhoss(IRRhossAc *ac, - const bool on, const stdAc::opmode_t mode, const float degrees, - const stdAc::fanspeed_t fan, const stdAc::swingv_t swing); -#endif // SEND_RHOSS static stdAc::state_t cleanState(const stdAc::state_t state); static stdAc::state_t handleToggles(const stdAc::state_t desired, const stdAc::state_t *prev = NULL);