Skip to content

Commit

Permalink
Fix a compile issue if SEND_FUJITSU_AC is false.
Browse files Browse the repository at this point in the history
  • Loading branch information
crankyoldgit committed Dec 13, 2017
1 parent 7bd411a commit cb1d72e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/ir_Fujitsu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,13 @@ void IRFujitsuAC::begin() {
_irsend.begin();
}

#if SEND_FUJITSU_AC
// Send the current desired state to the IR LED.
void IRFujitsuAC::send() {
getRaw();
_irsend.sendFujitsuAC(remote_state, getStateLength());
}
#endif // SEND_FUJITSU_AC

void IRFujitsuAC::buildState() {
remote_state[0] = 0x14;
Expand Down
4 changes: 2 additions & 2 deletions src/ir_Fujitsu.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#define FUJITSU_AC_SWING_BOTH 0x03U


#if SEND_FUJITSU_AC
enum fujitsu_ac_remote_model_t {
ARRAH2E = 1,
ARDB1,
Expand All @@ -57,7 +56,9 @@ class IRFujitsuAC {

void setModel(fujitsu_ac_remote_model_t model);
void stateReset();
#if SEND_FUJITSU_AC
void send();
#endif // SEND_FUJITSU_AC
void begin();
void off();
void stepHoriz();
Expand Down Expand Up @@ -97,6 +98,5 @@ class IRFujitsuAC {
void buildState();
void buildFromState(const uint16_t length);
};
#endif // SEND_FUJITSU_AC

#endif // IR_FUJITSU_H_

0 comments on commit cb1d72e

Please sign in to comment.