summaryrefslogtreecommitdiff
path: root/src/class/midi
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-07-17 23:01:39 +0700
committerhathach <[email protected]>2020-07-17 23:01:39 +0700
commit881025afdcdc3e8954163f8cc7337caa8455f594 (patch)
treee0849abab0e9054e1fdbf47c11611af360d0e39e /src/class/midi
parent7baeea7a000a7d8f8d0bb2c966d4c2c409205a09 (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.h8
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