8000 Fix issue compiler option2 · arduino/wifishield@5a5ee42 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5a5ee42

Browse files
committed
Fix issue compiler option2
1 parent 231468f commit 5a5ee42

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

firmware/wifiHD/src/ard_tcp.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,9 @@ static err_t atcp_poll(void *arg, struct tcp_pcb *pcb) {
325325
return ERR_ABRT;
326326
}
327327

328-
WARN("ARD TCP [%p-%p] arg=%p retries=%d\n", (_ttcp)?_ttcp->tpcb:0, pcb, arg, tcp_poll_retries);
328+
WARN("ARD TCP [%p-%p] arg=%p retries=%d pend.close:%d\n", (_ttcp)?_ttcp->tpcb:0, pcb, arg,
329+
tcp_poll_retries, pending_close);
329330
if (_ttcp) tcp_send_data(_ttcp);
330-
else WARN("ttcp NULL!");
331331

332332
if (pending_close)
333333
{
@@ -361,9 +361,10 @@ static err_t atcp_poll_conn(void *arg, struct tcp_pcb *pcb) {
361361
return ERR_ABRT;
362362
}
363363

364-
WARN("ARD TCP [%p-%p] arg=%p retries=%d\n", (_ttcp)?_ttcp->tpcb:0, pcb, arg, tcp_poll_retries);
364+
WARN("ARD TCP [%p-%p] arg=%p retries=%d pend.close:%d\n", (_ttcp)?_ttcp->tpcb:0, pcb, arg,
365+
tcp_poll_retries, pending_close);
366+
365367
if (_ttcp) tcp_send_data(_ttcp);
366-
else WARN("ttcp NULL!");
367368

368369
if (pending_close)
369370
{

firmware/wifiHD/src/debug.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ if ((enableDebug & INFO_TCP_FLAG)&&(verboseDebug & INFO_TCP_FLAG)) \
4646
if (enableDebug & INFO_SPI_FLAG) printk("I-[%s] " msg , __func__ , ##args ); \
4747
} while (0)
4848

49+
#define INFO_SPI_VER(msg, args...) do { \
50+
if ((enableDebug & INFO_SPI_FLAG)&&(verboseDebug & INFO_SPI_FLAG)) \
51+
printk("I-[%s] " msg , __func__ , ##args ); \
52+
} while (0)
53+
54+
4955
#define INFO_UTIL(msg, args...) do { \
5056
if (enableDebug & INFO_UTIL_FLAG) printk("I-[%s] " msg , __func__ , ##args ); \
5157
} while (0)

libraries/WiFi/utility/spi_drv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <inttypes.h>
55
#include "wifi_spi.h"
66

7-
#define SPI_START_CMD_DELAY 10
7+
#define SPI_START_CMD_DELAY 12
88

99
#define NO_LAST_PARAM 0
1010
#define LAST_PARAM 1

0 commit comments

Comments
 (0)
0