Why i cannot read two Jog Wheels ( 2 rotary encoders) in MIDI

hi, i’m using an arduino nano with atmega328p(old)
i set up one jogwheel, and it works fine,
then i setup two => arduino reads only one of them

remark: Hardware and soldering are verified and correct

it must be a programming issue
i include the code right here,

try.ino (2.27 KB)

That's an easy one. MIDI only has channels 1 to 16.


maaaaaaan thank youu, it works