Skip to content

Commit

Permalink
Add missing prevs to decodeToState() (#1783)
Browse files Browse the repository at this point in the history
Add passing the previous state for `DAIKIN128` & `KELON` when decoding to a state.

Found during code audit.
  • Loading branch information
crankyoldgit authored Apr 2, 2022
1 parent 434582a commit 1e2c1d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IRac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1e2c1d8

Please sign in to comment.