Browse Source

Fix RF code conversion to long (#1410)

alexa
Niek van der Maas 6 years ago
committed by Max Prokhorov
parent
commit
c4f80a77e8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/rf.ino

+ 1
- 1
code/espurna/rf.ino View File

@ -110,7 +110,7 @@ void _rfWebSocketOnSend(JsonObject& root) {
void _rfWebSocketOnAction(uint32_t client_id, const char * action, JsonObject& data) {
if (strcmp(action, "rfblearn") == 0) _rfLearn(data["id"], data["status"]);
if (strcmp(action, "rfbforget") == 0) _rfForget(data["id"], data["status"]);
if (strcmp(action, "rfbsend") == 0) _rfStore(data["id"], data["status"], data["data"].as<long>());
if (strcmp(action, "rfbsend") == 0) _rfStore(data["id"], data["status"], strtoul(data["data"], NULL, 16));
}
// -----------------------------------------------------------------------------


Loading…
Cancel
Save