update tinyusb to fix midi buffer overflow issue

This commit is contained in:
hathach 2021-04-02 17:57:56 +07:00
parent da16e4dce1
commit 7c3975ecf2
3 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 2adb7e719316b12c53a907153cfa0056db1abd70
Subproject commit ab4d30fd6bca02c73eb9b4ff82db0b2b0f403344

View File

@ -29,7 +29,7 @@
#include "tusb.h"
size_t common_hal_usb_midi_portin_read(usb_midi_portin_obj_t *self, uint8_t *data, size_t len, int *errcode) {
return tud_midi_read(data, len);
return tud_midi_stream_read(data, len);
}
uint32_t common_hal_usb_midi_portin_bytes_available(usb_midi_portin_obj_t *self) {

View File

@ -29,7 +29,7 @@
#include "tusb.h"
size_t common_hal_usb_midi_portout_write(usb_midi_portout_obj_t *self, const uint8_t *data, size_t len, int *errcode) {
return tud_midi_write(0, data, len);
return tud_midi_stream_write(0, data, len);
}
bool common_hal_usb_midi_portout_ready_to_tx(usb_midi_portout_obj_t *self) {