diff options
| author | hathach <[email protected]> | 2025-02-24 12:42:45 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-02-24 14:40:32 +0700 |
| commit | 56e84bd1a605e3835f29e2e7fd17f65e0f3b5431 (patch) | |
| tree | 324c5656754b2d447e5db41c5aa5f1bbae9977d8 /examples | |
| parent | 8c70475c23233e70652c5852088fc539bfb337ad (diff) | |
add desc_audio_control to midi descriptor callback
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/host/midi_rx/src/main.c | 2 | ||||
| -rw-r--r-- | examples/host/midi_rx/src/tusb_config.h | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/examples/host/midi_rx/src/main.c b/examples/host/midi_rx/src/main.c index a8a5b40ca..6db329ab5 100644 --- a/examples/host/midi_rx/src/main.c +++ b/examples/host/midi_rx/src/main.c @@ -106,8 +106,8 @@ void tuh_midi_rx_cb(uint8_t idx, uint32_t num_packets) { return; } - uint8_t cable_num; uint8_t buffer[48]; + uint8_t cable_num = 0; uint32_t bytes_read = tuh_midi_stream_read(idx, &cable_num, buffer, sizeof(buffer)); printf("Cable %u rx %lu bytes: ", cable_num, bytes_read); diff --git a/examples/host/midi_rx/src/tusb_config.h b/examples/host/midi_rx/src/tusb_config.h index 24b3b3ae6..c9b430388 100644 --- a/examples/host/midi_rx/src/tusb_config.h +++ b/examples/host/midi_rx/src/tusb_config.h @@ -111,8 +111,6 @@ extern "C" { #define CFG_TUH_DEVICE_MAX (3*CFG_TUH_HUB + 1) #define CFG_TUH_MIDI CFG_TUH_DEVICE_MAX -#define CFG_MIDI_HOST_DEVSTRINGS 1 - #ifdef __cplusplus } #endif |
