Skip to content

Commit

Permalink
IRremoteESP822 compile only LG
Browse files Browse the repository at this point in the history
  • Loading branch information
Дилян Палаузов authored and dilyanpalauzov committed Jul 18, 2023
1 parent 5f92720 commit d422345
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/lib_basic/IRremoteESP8266/IRremoteESP8266/src/IRsend.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ class IRsend {
void sendSherwood(uint64_t data, uint16_t nbits = kSherwoodBits,
uint16_t repeat = kSherwoodMinRepeat);
#endif
#if SEND_SAMSUNG
#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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ using irutils::addTempToString;
using irutils::addToggleToString;
using irutils::minsToString;

#if SEND_SAMSUNG
// This sending protocol is used by some other protocols. e.g. LG.
#if SEND_SAMSUNG || SEND_LG
/// Send a 32-bit Samsung formatted message.
/// Status: STABLE / Should be working.
/// @param[in] data The message to be sent.
Expand Down Expand Up @@ -112,7 +113,7 @@ uint32_t IRsend::encodeSAMSUNG(const uint8_t customer, const uint8_t command) {
return ((revcommand ^ 0xFF) | (revcommand << 8) | (revcustomer << 16) |
(revcustomer << 24));
}
#endif
#endif // (SEND_SAMSUNG || SEND_LG)

#if DECODE_SAMSUNG
/// Decode the supplied Samsung 32-bit message.
Expand Down

0 comments on commit d422345

Please sign in to comment.