Skip to content

Commit 1e2c1d8

Browse files
authored
Add missing prevs to decodeToState() (#1783)
Add passing the previous state for `DAIKIN128` & `KELON` when decoding to a state. Found during code audit.
1 parent 434582a commit 1e2c1d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/IRac.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4168,7 +4168,7 @@ namespace IRAcUtils {
41684168
case decode_type_t::DAIKIN128: {
41694169
IRDaikin128 ac(kGpioUnused);
41704170
ac.setRaw(decode->state);
4171-
*result = ac.toCommon();
4171+
*result = ac.toCommon(prev);
41724172
break;
41734173
}
41744174
#endif // DECODE_DAIKIN128
@@ -4348,7 +4348,7 @@ namespace IRAcUtils {
43484348
case decode_type_t::KELON: {
43494349
IRKelonAc ac(kGpioUnused);
43504350
ac.setRaw(decode->value);
4351-
*result = ac.toCommon();
4351+
*result = ac.toCommon(prev);
43524352
break;
43534353
}
43544354
#endif // DECODE_KELON

0 commit comments

Comments
 (0)