Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

[BUG]-DM USB Input - Input routing not selecting the correct card

Open andrew-welker opened this issue 3 years ago • 1 comments

Was this bug identified in a specific build version? 1.10.0

Describe the bug The outputSelector value is being used to determine the input card value instead of the input selector value

Offending code:

if ((sigType & eRoutingSignalType.UsbInput) == eRoutingSignalType.UsbInput)
            {
                Debug.Console(2, this, "Executing USB Input switch.\r\n in:{0} output: {1}", inputSelector, outputSelector);
                if (outputSelector > chassisSize)
                {
                    uint outputIndex;

                    if (chassisSize == 8)
                    {
                        outputIndex = (uint) inputSelector - 16;
                    }
                    else
                    {
                        outputIndex = inputSelector - chassisSize;
                    }
                    dmCard = Chassis.Outputs[outputIndex];
                }
                else
                {
                    dmCard = Chassis.Inputs[inputSelector];
                }

                ExecuteSwitch(dmCard, Chassis.Inputs[outputSelector], sigType);
                return;
            }

andrew-welker avatar Apr 15 '22 16:04 andrew-welker

@andrew-welker Has this been fixed?

jtalborough avatar Feb 23 '23 18:02 jtalborough