Skip to content

Commit

Permalink
fixed x10-transceiver and rf-transceiver build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
genemars committed Jan 11, 2024
1 parent 30e69b2 commit 34f3383
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/rf-transceiver/api/RCSwitchHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ namespace Service { namespace API {
noInterrupts();
transmitter->sendCommand(data, 24, 1, 0);
interrupts();
command->Response = R"({ "ResponseText": "OK" })";
responseCallback->writeAll(R"({ "ResponseText": "OK" })");

return true;
}
Expand Down
4 changes: 2 additions & 2 deletions examples/x10-transceiver/api/X10Handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ namespace Service { namespace API {
noInterrupts();
transmitter->sendCommand(data, sizeof(data));
interrupts();
command->Response = R"({ "ResponseText": "OK" })";
responseCallback->writeAll(R"({ "ResponseText": "OK" })");

return true;
} else if (command->Domain == (IOEventDomains::HomeAutomation_X10)) {
Expand Down Expand Up @@ -173,7 +173,7 @@ namespace Service { namespace API {
transmitter->sendCommand(&data[1], sizeof(data)-1, sendRepeat);
interrupts();
}
command->Response = R"({ "ResponseText": "OK" })";
responseCallback->writeAll(R"({ "ResponseText": "OK" })");

return true;
}
Expand Down

0 comments on commit 34f3383

Please sign in to comment.