Skip to content

Commit

Permalink
Merge pull request #5073 from TD-er/bugfix/send_to_controller
Browse files Browse the repository at this point in the history
[Controller] Fix sending to controller
  • Loading branch information
TD-er authored Jun 17, 2024
2 parents a83200f + 07df84b commit 8fb409c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/src/ESPEasyCore/Controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ void sendData(struct EventStruct *event, bool sendEvents)
Settings.TaskDeviceSendData[x][event->TaskIndex] &&
Settings.Protocol[x])
{
const protocolIndex_t ProtocolIndex = getProtocolIndex_from_ControllerIndex(event->ControllerIndex);
event->ControllerIndex = x;
const protocolIndex_t ProtocolIndex = getProtocolIndex_from_ControllerIndex(event->ControllerIndex);
event->idx = Settings.TaskDeviceID[x][event->TaskIndex];

if (validUserVar(event)) {
Expand Down

0 comments on commit 8fb409c

Please sign in to comment.