From d70339d4c8b1de5a75bf4f0b8b76f8100fbfcd58 Mon Sep 17 00:00:00 2001 From: chenyong <1521761801@qq.com> Date: Fri, 19 Jul 2019 16:43:44 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91AT=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E7=89=88=E6=9C=AC=E5=88=A4=E6=96=AD=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chenyong <1521761801@qq.com> --- class/ec20/at_device_ec20.c | 4 ---- class/ec20/at_socket_ec20.c | 4 ---- class/esp8266/at_device_esp8266.c | 4 ---- class/esp8266/at_socket_esp8266.c | 4 ---- class/m26/at_device_m26.c | 4 ---- class/m26/at_socket_m26.c | 4 ---- class/mw31/at_device_mw31.c | 4 ---- class/mw31/at_socket_mw31.c | 4 ---- class/rw007/at_device_rw007.c | 4 ---- class/rw007/at_socket_rw007.c | 4 ---- class/sim76xx/at_device_sim76xx.c | 4 ---- class/sim76xx/at_socket_sim76xx.c | 4 ---- class/sim800c/at_device_sim800c.c | 4 ---- class/sim800c/at_socket_sim800c.c | 4 ---- inc/at_device.h | 3 ++- 15 files changed, 2 insertions(+), 57 deletions(-) diff --git a/class/ec20/at_device_ec20.c b/class/ec20/at_device_ec20.c index 5c57dd9..b043ae5 100644 --- a/class/ec20/at_device_ec20.c +++ b/class/ec20/at_device_ec20.c @@ -29,10 +29,6 @@ #include -#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300 -#error "This AT Client version is older, please check and update latest AT Client!" -#endif - #define LOG_TAG "at.dev" #include diff --git a/class/ec20/at_socket_ec20.c b/class/ec20/at_socket_ec20.c index 9186dff..f8268e1 100644 --- a/class/ec20/at_socket_ec20.c +++ b/class/ec20/at_socket_ec20.c @@ -29,10 +29,6 @@ #include -#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300 -#error "This AT Client version is older, please check and update latest AT Client!" -#endif - #define LOG_TAG "at.skt" #include diff --git a/class/esp8266/at_device_esp8266.c b/class/esp8266/at_device_esp8266.c index 641f782..53b2220 100644 --- a/class/esp8266/at_device_esp8266.c +++ b/class/esp8266/at_device_esp8266.c @@ -28,10 +28,6 @@ #include -#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300 -#error "This AT Client version is older, please check and update latest AT Client!" -#endif - #define LOG_TAG "at.dev" #include diff --git a/class/esp8266/at_socket_esp8266.c b/class/esp8266/at_socket_esp8266.c index a0d1557..4feca4b 100644 --- a/class/esp8266/at_socket_esp8266.c +++ b/class/esp8266/at_socket_esp8266.c @@ -28,10 +28,6 @@ #include -#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300 -#error "This AT Client version is older, please check and update latest AT Client!" -#endif - #define LOG_TAG "at.skt" #include diff --git a/class/m26/at_device_m26.c b/class/m26/at_device_m26.c index 9548f0b..70828b5 100644 --- a/class/m26/at_device_m26.c +++ b/class/m26/at_device_m26.c @@ -28,10 +28,6 @@ #include -#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300 -#error "This AT Client version is older, please check and update latest AT Client!" -#endif - #define LOG_TAG "at.dev" #include diff --git a/class/m26/at_socket_m26.c b/class/m26/at_socket_m26.c index ff17802..d0b5a74 100644 --- a/class/m26/at_socket_m26.c +++ b/class/m26/at_socket_m26.c @@ -28,10 +28,6 @@ #include -#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300 -#error "This AT Client version is older, please check and update latest AT Client!" -#endif - #define LOG_TAG "at.dev" #include diff --git a/class/mw31/at_device_mw31.c b/class/mw31/at_device_mw31.c index c1ca528..f408819 100644 --- a/class/mw31/at_device_mw31.c +++ b/class/mw31/at_device_mw31.c @@ -27,10 +27,6 @@ #include -#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300 - #error "This AT Client version is older, please check and update latest AT Client!" -#endif - #define LOG_TAG "at.dev" #include diff --git a/class/mw31/at_socket_mw31.c b/class/mw31/at_socket_mw31.c index ed04bb9..09b0103 100644 --- a/class/mw31/at_socket_mw31.c +++ b/class/mw31/at_socket_mw31.c @@ -27,10 +27,6 @@ #include -#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300 - #error "This AT Client version is older, please check and update latest AT Client!" -#endif - #define LOG_TAG "at.skt" #include diff --git a/class/rw007/at_device_rw007.c b/class/rw007/at_device_rw007.c index a4ff63c..8e8140e 100644 --- a/class/rw007/at_device_rw007.c +++ b/class/rw007/at_device_rw007.c @@ -28,10 +28,6 @@ #include -#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300 -#error "This AT Client version is older, please check and update latest AT Client!" -#endif - #define LOG_TAG "at.dev" #include diff --git a/class/rw007/at_socket_rw007.c b/class/rw007/at_socket_rw007.c index 846ea1e..69ba024 100644 --- a/class/rw007/at_socket_rw007.c +++ b/class/rw007/at_socket_rw007.c @@ -28,10 +28,6 @@ #include -#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300 -#error "This AT Client version is older, please check and update latest AT Client!" -#endif - #define LOG_TAG "at.skt" #include diff --git a/class/sim76xx/at_device_sim76xx.c b/class/sim76xx/at_device_sim76xx.c index 664faf0..41f9696 100644 --- a/class/sim76xx/at_device_sim76xx.c +++ b/class/sim76xx/at_device_sim76xx.c @@ -30,10 +30,6 @@ #include -#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300 -#error "This AT Client version is older, please check and update latest AT Client!" -#endif - #define LOG_TAG "at.dev" #include diff --git a/class/sim76xx/at_socket_sim76xx.c b/class/sim76xx/at_socket_sim76xx.c index cd37c97..96ef5ec 100644 --- a/class/sim76xx/at_socket_sim76xx.c +++ b/class/sim76xx/at_socket_sim76xx.c @@ -30,10 +30,6 @@ #include -#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300 -#error "This AT Client version is older, please check and update latest AT Client!" -#endif - #define LOG_TAG "at.skt" #include diff --git a/class/sim800c/at_device_sim800c.c b/class/sim800c/at_device_sim800c.c index 988cb1b..9babbf8 100644 --- a/class/sim800c/at_device_sim800c.c +++ b/class/sim800c/at_device_sim800c.c @@ -29,10 +29,6 @@ #include -#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300 -#error "This AT Client version is older, please check and update latest AT Client!" -#endif - #define LOG_TAG "at.dev" #include diff --git a/class/sim800c/at_socket_sim800c.c b/class/sim800c/at_socket_sim800c.c index 4eda5bf..54c809a 100644 --- a/class/sim800c/at_socket_sim800c.c +++ b/class/sim800c/at_socket_sim800c.c @@ -28,10 +28,6 @@ #include -#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300 -#error "This AT Client version is older, please check and update latest AT Client!" -#endif - #define LOG_TAG "at.skt" #include diff --git a/inc/at_device.h b/inc/at_device.h index c330673..b64c739 100644 --- a/inc/at_device.h +++ b/inc/at_device.h @@ -32,9 +32,10 @@ extern "C" { #include #include -#if !defined(RT_USING_NETDEV) +#if !defined(RT_USING_NETDEV) || (!defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300) #error "This RT-Thread version is older, please check and updata laster RT-Thread!" #else + #include #include #endif /* RT_USING_NETDEV */