After power on of the keyboard the sustain pedal always trigger cc64 value 0 when sustain pedal is pressed and value 127 on release. This is independent on invert or not invert setting.
As soon as I modify any setting for the sustain pedal (for instance change off value from 0 to 1) the values sent are reveresed and the pressed down value sent is 127 and pedal release sends value 0 (or 1 if that is kept). The setting for invert doesn't matter, same values sent for invert on as well as invert off.
Power cycle of the keyboard returns the values sent to the incorrect ones (i.e. reversed, sustain on = 0 and sustain off = 127).
Any suggestions what this can be caused by? I have modified all sustain pedal settings and tried everything, but behaviour is still the same. Very annoying to have to enter sustain pedal setup every time I'm using the keyboard.
Sent values are monitored by the ShowMIDI application, so I can clearly see that any change to the sustain pedal settings trigger the change of values sent (from incorrect to expected)