From 9788b8d91a61429048944f63453d31c9e5b49315 Mon Sep 17 00:00:00 2001 From: chenyong <1521761801@qq.com> Date: Tue, 28 May 2019 11:08:12 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=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=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E9=97=AE=E9=A2=98?= 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 | 2 +- class/esp8266/at_device_esp8266.c | 4 ++-- class/sim800c/at_device_sim800c.c | 2 +- class/sim800c/at_socket_sim800c.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/class/ec20/at_device_ec20.c b/class/ec20/at_device_ec20.c index 76e964c..5c57dd9 100644 --- a/class/ec20/at_device_ec20.c +++ b/class/ec20/at_device_ec20.c @@ -29,7 +29,7 @@ #include -#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10200 +#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 diff --git a/class/esp8266/at_device_esp8266.c b/class/esp8266/at_device_esp8266.c index 4bc8332..641f782 100644 --- a/class/esp8266/at_device_esp8266.c +++ b/class/esp8266/at_device_esp8266.c @@ -102,12 +102,12 @@ static void esp8266_get_netdev_info(struct rt_work *work, void *work_data) } /* set netdev info */ - inet_aton(ip, &ip_addr); - netdev_low_level_set_ipaddr(netdev, &ip_addr); inet_aton(gateway, &ip_addr); netdev_low_level_set_gw(netdev, &ip_addr); inet_aton(netmask, &ip_addr); netdev_low_level_set_netmask(netdev, &ip_addr); + inet_aton(ip, &ip_addr); + netdev_low_level_set_ipaddr(netdev, &ip_addr); sscanf(mac, "%x:%x:%x:%x:%x:%x", &mac_addr[0], &mac_addr[1], &mac_addr[2], &mac_addr[3], &mac_addr[4], &mac_addr[5]); for (num = 0; num < netdev->hwaddr_len; num++) diff --git a/class/sim800c/at_device_sim800c.c b/class/sim800c/at_device_sim800c.c index e7aba15..988cb1b 100644 --- a/class/sim800c/at_device_sim800c.c +++ b/class/sim800c/at_device_sim800c.c @@ -29,7 +29,7 @@ #include -#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10200 +#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 diff --git a/class/sim800c/at_socket_sim800c.c b/class/sim800c/at_socket_sim800c.c index 2213e51..4eda5bf 100644 --- a/class/sim800c/at_socket_sim800c.c +++ b/class/sim800c/at_socket_sim800c.c @@ -28,7 +28,7 @@ #include -#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10200 +#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