Browse Source

Fix stupid typo that prevented to learn RF codes in the RFBridge (#287)

fastled
Xose Pérez 7 years ago
parent
commit
0ab5321a6f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      code/espurna/rfbridge.ino

+ 2
- 2
code/espurna/rfbridge.ino View File

@ -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*>());
}
@ -356,7 +356,7 @@ void rfbSetup() {
wsOnSendRegister(_rfbWebSocketOnSend);
wsOnActionRegister(_rfbWebSocketOnAction);
#endif
}
void rfbLoop() {


Loading…
Cancel
Save