From 07df84b76b658527def101e1612e1a5ec8b4927e Mon Sep 17 00:00:00 2001 From: TD-er Date: Mon, 17 Jun 2024 23:52:01 +0200 Subject: [PATCH] [Controller] Fix sending to controller --- src/src/ESPEasyCore/Controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/src/ESPEasyCore/Controller.cpp b/src/src/ESPEasyCore/Controller.cpp index e3a0f10bf4..14f6ca1297 100644 --- a/src/src/ESPEasyCore/Controller.cpp +++ b/src/src/ESPEasyCore/Controller.cpp @@ -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)) {