diff options
| author | hathach <[email protected]> | 2025-02-14 10:41:05 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-02-14 10:41:05 +0700 |
| commit | ed88fc983fcc8bd0bcc27b9982b21223a580f59d (patch) | |
| tree | 92d2ff6e904b476de59d2dc6103a843a4fb07f66 /examples | |
| parent | bad6cbe48930c0c5250b8a717a46cc1f6d83de56 (diff) | |
- remove tuh_midi_read_poll(), auto schedule EP in when set_config() and xfer_cb as well as ep read()
- de-dup tuh_midi_get_num_rx/tx_cables
- add tuh_midi_read_available()
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/host/midi_rx/src/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/host/midi_rx/src/main.c b/examples/host/midi_rx/src/main.c index a03fd588f..0b07ba6e7 100644 --- a/examples/host/midi_rx/src/main.c +++ b/examples/host/midi_rx/src/main.c @@ -38,7 +38,7 @@ static uint8_t midi_dev_addr = 0; //--------------------------------------------------------------------+ -// MACRO CONSTANT TYPEDEF PROTYPES +// MACRO CONSTANT TYPEDEF PROTOTYPES //--------------------------------------------------------------------+ void led_blinking_task(void); void midi_host_rx_task(void); @@ -92,10 +92,9 @@ void midi_host_rx_task(void) { if (!midi_dev_addr || !tuh_midi_configured(midi_dev_addr)) { return; } - if (tuh_midih_get_num_rx_cables(midi_dev_addr) < 1) { + if (tuh_midi_get_num_rx_cables(midi_dev_addr) < 1) { return; } - tuh_midi_read_poll(midi_dev_addr); } //--------------------------------------------------------------------+ |
