瀏覽代碼

Added getSysExArrayLength()

Added getSysExArrayLength(), changed msg_sysex_len to uint16_t
main
neroroxxx 6 年之前
父節點
當前提交
9753928e00
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. +4
    -1
      USBHost_t36.h

+ 4
- 1
USBHost_t36.h 查看文件

@@ -1042,6 +1042,9 @@ public:
uint8_t * getSysExArray(void) {
return msg_sysex;
}
uint16_t getSysExArrayLength(void) {
return msg_data2 << 8 | msg_data1;
}
void setHandleNoteOff(void (*fptr)(uint8_t channel, uint8_t note, uint8_t velocity)) {
// type: 0x80 NoteOff
handleNoteOff = fptr;
@@ -1172,7 +1175,7 @@ private:
uint8_t msg_data1;
uint8_t msg_data2;
uint8_t msg_sysex[SYSEX_MAX_LEN];
uint8_t msg_sysex_len;
uint16_t msg_sysex_len;
void (*handleNoteOff)(uint8_t ch, uint8_t note, uint8_t vel);
void (*handleNoteOn)(uint8_t ch, uint8_t note, uint8_t vel);
void (*handleVelocityChange)(uint8_t ch, uint8_t note, uint8_t vel);

Loading…
取消
儲存