Skip to content

Commit

Permalink
[BUG] Fix IRAcUtils::decodeToState() for different length Samsung m…
Browse files Browse the repository at this point in the history
…sgs (#1448)

Need to pass byte length to `IRSamsungAc::setRaw()` to handle normal & **extended** messages.

Kudos to @yaroshd81 for finding the bug, and offering the solution.

Fixes #1447
  • Loading branch information
crankyoldgit authored Mar 30, 2021
1 parent 38eacde commit cd8d600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IRac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3817,7 +3817,7 @@ namespace IRAcUtils {
#if DECODE_SAMSUNG_AC
case decode_type_t::SAMSUNG_AC: {
IRSamsungAc ac(kGpioUnused);
ac.setRaw(decode->state);
ac.setRaw(decode->state, decode->bits / 8);
*result = ac.toCommon();
break;
}
Expand Down

0 comments on commit cd8d600

Please sign in to comment.