Skip to content

Commit 21ba403

Browse files
authored
Update IRsend sendHaierAC to include SEND_HAIER_AC160 (#2172)
`ir_Haier.cpp` defines it here https : //github.com/crankyoldgit/IRremoteESP8266/blob/master/src/ir_Haier.cpp#L49 When using flags `-D_IR_ENABLE_DEFAULT_ = false`and `-DSEND_HAIER_AC160=true` it results in not compiling since it can't fine the method in the header file.
1 parent 9bdf8ab commit 21ba403

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/IRsend.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -626,11 +626,12 @@ class IRsend {
626626
uint16_t nbytes = kCarrierAc128StateLength,
627627
uint16_t repeat = kCarrierAc128MinRepeat);
628628
#endif // SEND_CARRIER_AC128
629-
#if (SEND_HAIER_AC || SEND_HAIER_AC_YRW02 || SEND_HAIER_AC176)
629+
#if (SEND_HAIER_AC || SEND_HAIER_AC_YRW02 || SEND_HAIER_AC160 || \
630+
SEND_HAIER_AC176)
630631
void sendHaierAC(const unsigned char data[],
631632
const uint16_t nbytes = kHaierACStateLength,
632633
const uint16_t repeat = kHaierAcDefaultRepeat);
633-
#endif // (SEND_HAIER_AC || SEND_HAIER_AC_YRW02 || SEND_HAIER_AC176)
634+
#endif // (SEND_HAIER_AC || SEND_HAIER_AC_YRW02 || SEND_HAIER_AC160 || SEND_HAIER_AC176)
634635
#if SEND_HAIER_AC_YRW02
635636
void sendHaierACYRW02(const unsigned char data[],
636637
const uint16_t nbytes = kHaierACYRW02StateLength,

0 commit comments

Comments
 (0)