Skip to content

Commit 0bf9df2

Browse files
committed
fix debug
1 parent d90bc17 commit 0bf9df2

File tree

1 file changed

+10
-0
lines changed
  • ports/raspberrypi/common-hal/wifi

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
#include "components/mdns/include/mdns.h"
4747
#endif
4848

49+
#include "lwip/sys.h"
4950
#include "lwip/dns.h"
5051
#include "lwip/icmp.h"
5152
#include "lwip/raw.h"
@@ -55,6 +56,15 @@
5556
#define PING_ID 0xAFAF
5657
#endif
5758

59+
#ifndef PING_DEBUG
60+
#define PING_DEBUG LWIP_DBG_ON
61+
#endif
62+
63+
#ifdef LWIP_DEBUG
64+
static u32_t ping_time;
65+
#endif
66+
67+
5868
#define MAC_ADDRESS_LENGTH 6
5969

6070
#define NETIF_STA (&cyw43_state.netif[CYW43_ITF_STA])

0 commit comments

Comments
 (0)