dvhdr/launchpad-pro

hal_send_sysex() sends empty message

DatanoiseTV opened this issue · 2 comments

Code:

int initSeq[14] = {0xF0, 0x00, 0x00, 0x7E, 0x4E, 0x00, 0x01, 0x08, 0x08, 0x02, 0x01, 0x01, 0x01, 0xF7};
hal_send_sysex(DINMIDI, initSeq, 14);

I see messages with the correct lenght, but containing zeros instead of the wanted values:

bildschirmfoto 2016-09-12 um 21 46 11

dvhdr commented

I think that's because that code passes an array of int, not unsigned char. Not had a chance to test it myself though!

Yes, that is right.