From 1e2c1d845cdf0231ab93b207d9bbf59971021c0d Mon Sep 17 00:00:00 2001 From: David Conran Date: Sun, 3 Apr 2022 06:59:01 +1000 Subject: [PATCH] Add missing `prev`s to `decodeToState()` (#1783) Add passing the previous state for `DAIKIN128` & `KELON` when decoding to a state. Found during code audit. --- src/IRac.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IRac.cpp b/src/IRac.cpp index de07bf964..593e2420f 100644 --- a/src/IRac.cpp +++ b/src/IRac.cpp @@ -4168,7 +4168,7 @@ namespace IRAcUtils { case decode_type_t::DAIKIN128: { IRDaikin128 ac(kGpioUnused); ac.setRaw(decode->state); - *result = ac.toCommon(); + *result = ac.toCommon(prev); break; } #endif // DECODE_DAIKIN128 @@ -4348,7 +4348,7 @@ namespace IRAcUtils { case decode_type_t::KELON: { IRKelonAc ac(kGpioUnused); ac.setRaw(decode->value); - *result = ac.toCommon(); + *result = ac.toCommon(prev); break; } #endif // DECODE_KELON