From 64bd1400390937cd3878a8a9173712e1571c1d49 Mon Sep 17 00:00:00 2001 From: Alex Kalineskou Date: Tue, 7 Jan 2025 02:04:39 +0200 Subject: [PATCH] Update IRsend sendHaierAC to include SEND_HAIER_AC160 `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. --- src/IRsend.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/IRsend.h b/src/IRsend.h index 56e9a3d35..cf97521c4 100644 --- a/src/IRsend.h +++ b/src/IRsend.h @@ -626,11 +626,12 @@ class IRsend { uint16_t nbytes = kCarrierAc128StateLength, uint16_t repeat = kCarrierAc128MinRepeat); #endif // SEND_CARRIER_AC128 -#if (SEND_HAIER_AC || SEND_HAIER_AC_YRW02 || SEND_HAIER_AC176) +#if (SEND_HAIER_AC || SEND_HAIER_AC_YRW02 || SEND_HAIER_AC160 || \ + SEND_HAIER_AC176) void sendHaierAC(const unsigned char data[], const uint16_t nbytes = kHaierACStateLength, const uint16_t repeat = kHaierAcDefaultRepeat); -#endif // (SEND_HAIER_AC || SEND_HAIER_AC_YRW02 || SEND_HAIER_AC176) +#endif // (SEND_HAIER_AC || SEND_HAIER_AC_YRW02 || SEND_HAIER_AC160 || SEND_HAIER_AC176) #if SEND_HAIER_AC_YRW02 void sendHaierACYRW02(const unsigned char data[], const uint16_t nbytes = kHaierACYRW02StateLength,