From 1e20b5588657150631caf7dfeb555036a8195126 Mon Sep 17 00:00:00 2001 From: David Conran Date: Sun, 9 Jul 2023 07:08:07 +1000 Subject: [PATCH] Additional location needed updating. Also include the compile dependency in `IRsend.h` too. Ref: https://github.com/crankyoldgit/IRremoteESP8266/issues/2010#issuecomment-1627239509 --- src/IRsend.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/IRsend.h b/src/IRsend.h index f8a447197..38491372a 100644 --- a/src/IRsend.h +++ b/src/IRsend.h @@ -310,11 +310,12 @@ class IRsend { void sendSherwood(uint64_t data, uint16_t nbits = kSherwoodBits, uint16_t repeat = kSherwoodMinRepeat); #endif -#if SEND_SAMSUNG + // `sendSAMSUNG()` is required by `sendLG()` +#if (SEND_SAMSUNG || SEND_LG) void sendSAMSUNG(const uint64_t data, const uint16_t nbits = kSamsungBits, const uint16_t repeat = kNoRepeat); uint32_t encodeSAMSUNG(const uint8_t customer, const uint8_t command); -#endif +#endif // (SEND_SAMSUNG || SEND_LG) #if SEND_SAMSUNG36 void sendSamsung36(const uint64_t data, const uint16_t nbits = kSamsung36Bits, const uint16_t repeat = kNoRepeat);