For clarification, somewhere in your code you have
motor = Talon(0) //or a different number
then later in your code you have
motor = Talon(0)//or a different number, but same number as before
You can’t assign two motor to the same PWM in code. If it so happens that you want to run two motors the exact same way (for a gearbox perhaps?) then you should use a pwm splitter (KOP I believe)
I’m guessing you already fixed this problem with previous comments. An alternate to the PWM splitting in hardware is to map it in software. This can make life easier for your mechanical/electrical teams because they just plug each motor into a PWM slot and then you write the same value out multiple times in each software iteration: