diff options
| author | hathach <[email protected]> | 2019-07-01 23:11:16 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-07-01 23:11:16 +0700 |
| commit | e70232809389dec570d0f1e81a13885c2a48bb1b (patch) | |
| tree | 3636e21ab71cf3ee92acb4fe4069ca96e603278f /src/class/midi | |
| parent | d2f53c552a2e6ff95aa18cb67bd5fc25fba11d53 (diff) | |
fix compiling
Diffstat (limited to 'src/class/midi')
| -rw-r--r-- | src/class/midi/midi_device.c | 2 | ||||
| -rw-r--r-- | src/class/midi/midi_device.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/class/midi/midi_device.c b/src/class/midi/midi_device.c index 2454db47e..65a8df65d 100644 --- a/src/class/midi/midi_device.c +++ b/src/class/midi/midi_device.c @@ -252,7 +252,7 @@ void midid_reset(uint8_t rhport) bool midid_open(uint8_t rhport, tusb_desc_interface_t const * p_interface_desc, uint16_t *p_length)
{
// For now handle the audio control interface as well.
- if ( AUDIO_SUBCLASS_AUDIO_CONTROL == p_interface_desc->bInterfaceSubClass) {
+ if ( AUDIO_SUBCLASS_CONTROL == p_interface_desc->bInterfaceSubClass) {
uint8_t const * p_desc = tu_desc_next ( (uint8_t const *) p_interface_desc );
(*p_length) = sizeof(tusb_desc_interface_t);
diff --git a/src/class/midi/midi_device.h b/src/class/midi/midi_device.h index 45e009010..db9952656 100644 --- a/src/class/midi/midi_device.h +++ b/src/class/midi/midi_device.h @@ -29,7 +29,9 @@ #include "common/tusb_common.h"
#include "device/usbd.h"
+
#include "class/audio/audio.h"
+#include "midi.h"
//--------------------------------------------------------------------+
// Class Driver Configuration
|
