summaryrefslogtreecommitdiff
path: root/examples/device/dynamic_configuration/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-04-02 13:26:55 +0700
committerhathach <[email protected]>2021-04-02 13:26:55 +0700
commit080b14b292251e46b43aac9e1cf7807dc2d3eb2c (patch)
treea22f89ff2ebc16d814535334673b6720c1e9771a /examples/device/dynamic_configuration/src
parent949ff791e0222d9d89fe54b7cab036125997b66e (diff)
fix midi tx fifo overflow cause data corruption
rename
Diffstat (limited to 'examples/device/dynamic_configuration/src')
-rw-r--r--examples/device/dynamic_configuration/src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/dynamic_configuration/src/main.c b/examples/device/dynamic_configuration/src/main.c
index acee295f6..ce1f752d0 100644
--- a/examples/device/dynamic_configuration/src/main.c
+++ b/examples/device/dynamic_configuration/src/main.c
@@ -172,7 +172,7 @@ void midi_task(void)
// regardless of these being used or not. Therefore incoming traffic should be read
// (possibly just discarded) to avoid the sender blocking in IO
uint8_t packet[4];
- while(tud_midi_available()) tud_midi_receive(packet);
+ while( tud_midi_available() ) tud_midi_packet_read(packet);
// send note every 1000 ms
if (board_millis() - start_ms < 286) return; // not enough time