10000 update tinyusb to fix midi buffer overflow issue by hathach · Pull Request #4538 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content

update tinyusb to fix midi buffer overflow issue #4538

8000
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/tinyusb
Submodule tinyusb updated 276 files
2 changes: 1 addition & 1 deletion shared-module/usb_midi/PortIn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion shared-module/usb_midi/PortOut.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
0