|
|
@@ -513,7 +513,11 @@ __exit:
|
|
|
#ifdef NETDEV_USING_PING
|
|
|
#ifdef AT_DEVICE_USING_ML307
|
|
|
static int ml307_netdev_ping(struct netdev *netdev, const char *host,
|
|
|
- size_t data_len, uint32_t timeout, struct netdev_ping_resp *ping_resp)
|
|
|
+ size_t data_len, uint32_t timeout, struct netdev_ping_resp *ping_resp
|
|
|
+#if RT_VER_NUM >= 0x50100
|
|
|
+ , rt_bool_t is_bind
|
|
|
+#endif
|
|
|
+ )
|
|
|
{
|
|
|
#define ML307_PING_RESP_SIZE 128
|
|
|
#define ML307_PING_IP_SIZE 16
|
|
|
@@ -524,7 +528,10 @@ static int ml307_netdev_ping(struct netdev *netdev, const char *host,
|
|
|
char ip_addr_resp[ML307_PING_IP_SIZE + 8] = {0};
|
|
|
at_response_t resp = RT_NULL;
|
|
|
struct at_device *device = RT_NULL;
|
|
|
-// int sent, recv, lost, min, max, avg;
|
|
|
+
|
|
|
+#if RT_VER_NUM >= 0x50100
|
|
|
+ RT_UNUSED(is_bind);
|
|
|
+#endif
|
|
|
|
|
|
RT_ASSERT(netdev);
|
|
|
RT_ASSERT(host);
|