Problem at canardTxPush()

Hi

Somehow I had this working on an Arduino Mega at some time but I “tried to fix what was not broken” and now it is not working anymore and I don’t know what is wrong. I know canardTxPush() is returning -2 but i don’t know why. Anybody can help with some insight please?

The code is here:

The relevant case is this one:

The maximum subject-ID value is 8191 (changed in UAVCAN Spec v1.0-beta, used to be 32767):

This change is described in the changelog here:

You need to update your subject-ID constants.