No signal from sustain pedal

So I’ve solved it by doing this:
I plugged the pedal into 1(switch) slot on the sl73 and then disable the function of the pedal from keyboards menu. (Programs +/- → OFF)