Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update decodeToState() #982

Merged
merged 1 commit into from
Oct 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion src/IRac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down