From a8eea9f6a540ef5c6314c400754364e0456002cd Mon Sep 17 00:00:00 2001 From: hathach Date: Sat, 9 Oct 2021 11:28:55 +0700 Subject: [PATCH] add backward compatible with warnings for CFG_TUD_NET --- src/tusb_option.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tusb_option.h b/src/tusb_option.h index 057bc61c2..cda8c45ce 100644 --- a/src/tusb_option.h +++ b/src/tusb_option.h @@ -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