Merge pull request #5073 from TD-er/bugfix/send_to_controller

[Controller] Fix sending to controller
This commit is contained in:
TD-er
2024-06-18 00:31:52 +02:00
committed by GitHub
+1 -1
View File
@@ -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)) {