Skip to content

Commit

Permalink
Fix stupid typo that prevented to learn RF codes in the RFBridge (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoseperez committed Dec 1, 2017
1 parent e811184 commit 0ab5321
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/espurna/rfbridge.ino
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void _rfbWebSocketOnSend(JsonObject& root) {
}

void _rfbWebSocketOnAction(const char * action, JsonObject& data) {
if (strcmp(action, "rfbLearn") == 0) rfbLearn(data["id"], data["status"]);
if (strcmp(action, "rfblearn") == 0) rfbLearn(data["id"], data["status"]);
if (strcmp(action, "rfbforget") == 0) rfbForget(data["id"], data["status"]);
if (strcmp(action, "rfbsend") == 0) rfbStore(data["id"], data["status"], data["data"].as<const char*>());
}
Expand Down Expand Up @@ -356,7 +356,7 @@ void rfbSetup() {
wsOnSendRegister(_rfbWebSocketOnSend);
wsOnActionRegister(_rfbWebSocketOnAction);
#endif

}

void rfbLoop() {
Expand Down

0 comments on commit 0ab5321

Please sign in to comment.