Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a compile issue if SEND_FUJITSU_AC is false. #375

Merged
merged 1 commit into from
Dec 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/ir_Fujitsu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,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_