diff options
| author | hathach <[email protected]> | 2020-07-17 23:01:39 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-07-17 23:01:39 +0700 |
| commit | 881025afdcdc3e8954163f8cc7337caa8455f594 (patch) | |
| tree | e0849abab0e9054e1fdbf47c11611af360d0e39e /src/class/midi | |
| parent | 7baeea7a000a7d8f8d0bb2c966d4c2c409205a09 (diff) | |
add new name warning to cdc and midi (skip msc, hid warning for now)
Diffstat (limited to 'src/class/midi')
| -rw-r--r-- | src/class/midi/midi_device.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/class/midi/midi_device.h b/src/class/midi/midi_device.h index 8f60d264a..1828a21a3 100644 --- a/src/class/midi/midi_device.h +++ b/src/class/midi/midi_device.h @@ -36,7 +36,13 @@ //--------------------------------------------------------------------+ // Class Driver Configuration //--------------------------------------------------------------------+ -#ifndef CFG_TUD_MIDI_EPSIZE + +#if !defined(CFG_TUD_MIDI_EP_BUFSIZE) && defined(CFG_TUD_MIDI_EPSIZE) + #warning CFG_TUD_MIDI_EPSIZE is renamed to CFG_TUD_MIDI_EP_BUFSIZE, please update to use the new name + #define CFG_TUD_MIDI_EP_BUFSIZE CFG_TUD_MIDI_EPSIZE +#endif + +#ifndef CFG_TUD_MIDI_EP_BUFSIZE #define CFG_TUD_MIDI_EP_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64) #endif |
