add backward compatible with warnings for CFG_TUD_NET

This commit is contained in:
hathach 2021-10-09 11:28:55 +07:00
parent 431650fb7d
commit a8eea9f6a5
No known key found for this signature in database
GPG Key ID: 2FA891220FBFD581
1 changed files with 6 additions and 1 deletions

View File

@ -266,7 +266,12 @@
#endif
#ifndef CFG_TUD_ECM_RNDIS
#define CFG_TUD_ECM_RNDIS 0
#ifdef CFG_TUD_NET
#warning "CFG_TUD_NET is renamed to CFG_TUD_ECM_RNDIS"
#define CFG_TUD_ECM_RNDIS CFG_TUD_NET
#else
#define CFG_TUD_ECM_RNDIS 0
#endif
#endif
#ifndef CFG_TUD_NCM