Skip to content

Commit

Permalink
Add missing HITACHI_AC2 entry to typeToString().
Browse files Browse the repository at this point in the history
- Fix some code inclusion dependencies.
  • Loading branch information
crankyoldgit committed May 19, 2018
1 parent 843a5da commit 3342ea3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/IRrecv.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ class IRrecv {
bool decodeHaierAC(decode_results *results,
uint16_t nbits = HAIER_AC_BITS, bool strict = true);
#endif
#if DECODE_HITACHI_AC
#if (DECODE_HITACHI_AC || DECODE_HITACHI_AC2)
bool decodeHitachiAC(decode_results *results,
uint16_t nbits = HITACHI_AC_BITS, bool strict = true);
#endif
Expand Down
1 change: 1 addition & 0 deletions src/IRutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ std::string typeToString(const decode_type_t protocol,
case HAIER_AC: result = "HAIER_AC"; break;
case HITACHI_AC: result = "HITACHI_AC"; break;
case HITACHI_AC1: result = "HITACHI_AC1"; break;
case HITACHI_AC2: result = "HITACHI_AC2"; break;
case JVC: result = "JVC"; break;
case KELVINATOR: result = "KELVINATOR"; break;
case LG: result = "LG"; break;
Expand Down
4 changes: 2 additions & 2 deletions src/ir_Hitachi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#define HITACHI_AC_ZERO_SPACE 500U
#define HITACHI_AC_MIN_GAP 100000U // Completely made up value.

#if SEND_HITACHI_AC
#if (SEND_HITACHI_AC || SEND_HITACHI_AC2)
// Send a Hitachi A/C message.
//
// Args:
Expand All @@ -53,7 +53,7 @@ void IRsend::sendHitachiAC(unsigned char data[], uint16_t nbytes,
HITACHI_AC_BIT_MARK, HITACHI_AC_MIN_GAP,
data, nbytes, 38, true, repeat, 50);
}
#endif // SEND_HITACHI_AC
#endif // (SEND_HITACHI_AC || SEND_HITACHI_AC2)

#if SEND_HITACHI_AC1
// Send a Hitachi A/C 13-byte message.
Expand Down

0 comments on commit 3342ea3

Please sign in to comment.