Merge pull request #4538 from hathach/fix-midi-buffer-issue

update tinyusb to fix midi buffer overflow issue
This commit is contained in:
Jeff Epler 2021-04-02 09:05:58 -05:00 committed by GitHub
commit ecf38fdfd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {