diff options
| author | hathach <[email protected]> | 2018-06-24 22:30:44 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-06-24 22:30:44 +0700 |
| commit | cfd5e1e6d19d94481ef84b4a16b41b2fae6c252e (patch) | |
| tree | d26f65eb7f27c74f04333156373bcb0698758fa5 /src | |
| parent | 6b2b6aaa3f5b63a00ac852a3a2b2cebb2bd23741 (diff) | |
clean up
Diffstat (limited to 'src')
| -rw-r--r-- | src/class/msc/msc_device.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/class/msc/msc_device.c b/src/class/msc/msc_device.c index ec804dcc8..3adcbc985 100644 --- a/src/class/msc/msc_device.c +++ b/src/class/msc/msc_device.c @@ -48,6 +48,12 @@ #include "msc_device.h"
#include "device/usbd_pvt.h"
+VERIFY_STATIC(CFG_TUD_MSC_BUFSIZE < UINT16_MAX, "Size is not correct");
+
+#ifndef CFG_TUD_MSC_MAXLUN
+#define CFG_TUD_MSC_MAXLUN 1
+#endif
+
//--------------------------------------------------------------------+
// MACRO CONSTANT TYPEDEF
//--------------------------------------------------------------------+
|
