Skip to content

Commit 6954e56

Browse files
committed
since it ain't leaving..
1 parent fde1c05 commit 6954e56

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

ports/raspberrypi/common-hal/wifi/Radio.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,7 @@
5050
#include "lwip/dns.h"
5151
#include "lwip/icmp.h"
5252
#include "lwip/raw.h"
53-
54-
#ifndef PING_ID
55-
#define PING_ID 0xAFAF
56-
#endif
57-
58-
#ifndef PING_DEBUG
59-
#define PING_DEBUG LWIP_DBG_ON
60-
#endif
53+
#include "lwip_src/ping.h"
6154

6255
#define MAC_ADDRESS_LENGTH 6
6356

@@ -299,8 +292,6 @@ void common_hal_wifi_radio_set_ipv4_address(wifi_radio_obj_t *self, mp_obj_t ipv
299292
}
300293

301294
volatile bool ping_received;
302-
int ping_send(struct raw_pcb *raw, const ip_addr_t *addr);
303-
uint16_t ping_seq_num;
304295
uint32_t ping_time;
305296

306297
static u8_t

ports/raspberrypi/lwip_src/ping.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
#define PING_USE_SOCKETS LWIP_SOCKET
1313
#endif
1414

15+
#ifndef PING_ID
16+
#define PING_ID 0xAFAF
17+
#endif
18+
19+
#ifndef PING_DEBUG
20+
#define PING_DEBUG LWIP_DBG_ON
21+
#endif
22+
1523
void ping_init(const ip_addr_t *ping_addr);
1624
void ping_prepare_echo(struct icmp_echo_hdr *iecho, u16_t len);
1725

0 commit comments

Comments
 (0)