diff options
| author | atok <[email protected]> | 2022-09-08 21:13:55 +0200 |
|---|---|---|
| committer | atoktoto <[email protected]> | 2022-11-13 14:31:12 +0100 |
| commit | 19563b441463aed9b3d622f2d57d61082199fbdd (patch) | |
| tree | 1c9e3d0585400993f70d93b07888281d37ed03c0 /src | |
| parent | 4fbf99621d5a5b8b5de698a792578a2066c667f3 (diff) | |
Simple MIDI rx example
Diffstat (limited to 'src')
| -rw-r--r-- | src/class/midi/midi_host.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/midi/midi_host.c b/src/class/midi/midi_host.c index a6ad1303a..aafa340cd 100644 --- a/src/class/midi/midi_host.c +++ b/src/class/midi/midi_host.c @@ -333,10 +333,10 @@ bool midih_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const *d p_midi_host->out_jack_info[p_midi_host->next_out_jack].jack_id = p_mdoj->bJackID; p_midi_host->out_jack_info[p_midi_host->next_out_jack].jack_type = p_mdoj->bJackType; p_midi_host->out_jack_info[p_midi_host->next_out_jack].num_source_ids = p_mdoj->bNrInputPins; - struct associated_jack_s { + const struct associated_jack_s { uint8_t id; uint8_t pin; - } *associated_jack = (struct associated_jack_s *)(p_desc+6); + } *associated_jack = (const struct associated_jack_s *)(p_desc+6); int jack; for (jack = 0; jack < p_mdoj->bNrInputPins; jack++) { |
