From c6383ccd2950ab5c2e6654ce5683a3388cfb65cd Mon Sep 17 00:00:00 2001 From: David Date: Wed, 30 Oct 2019 11:49:16 +1000 Subject: [PATCH] Update decodeToState() * Fix SEND_AMCOR => SEND_ARGO * Add DAIKIN128 & DAIKIN152 to `decodeToState()` --- src/IRac.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/IRac.cpp b/src/IRac.cpp index 014fc4ed0..cc6d9d0f8 100644 --- a/src/IRac.cpp +++ b/src/IRac.cpp @@ -95,7 +95,7 @@ bool IRac::isProtocolSupported(const decode_type_t protocol) { #if SEND_AMCOR case decode_type_t::AMCOR: #endif -#if SEND_AMCOR +#if SEND_ARGO case decode_type_t::ARGO: #endif #if SEND_COOLIX @@ -2135,6 +2135,22 @@ namespace IRAcUtils { break; } #endif // DECODE_DAIKIN +#if DECODE_DAIKIN128 + case decode_type_t::DAIKIN128: { + IRDaikin128 ac(0); + ac.setRaw(decode->state); + *result = ac.toCommon(); + break; + } +#endif // DECODE_DAIKIN128 +#if DECODE_DAIKIN152 + case decode_type_t::DAIKIN152: { + IRDaikin152 ac(0); + ac.setRaw(decode->state); + *result = ac.toCommon(); + break; + } +#endif // DECODE_DAIKIN152 #if DECODE_DAIKIN160 case decode_type_t::DAIKIN160: { IRDaikin160 ac(kGpioUnused);