When I connect my piano to my computer and press the sustain pedal, it just plays a C note. (Garageband, and Musescore.) I have an Arius YDP-161 digital piano and a MIDI to USB converter. I use a MacBook Air 2015.
I searched a bit and saw that people with this converter had the same issues. These cheap MIDI converters can't send the proper MIDI signals because of poor circuiting.