mirror of https://github.com/noisymime/Arduino.git
Fix issue compiler option2
This commit is contained in:
parent
65e8bec014
commit
fc3570e810
|
@ -325,9 +325,9 @@ static err_t atcp_poll(void *arg, struct tcp_pcb *pcb) {
|
|||
return ERR_ABRT;
|
||||
}
|
||||
|
||||
WARN("ARD TCP [%p-%p] arg=%p retries=%d\n", (_ttcp)?_ttcp->tpcb:0, pcb, arg, tcp_poll_retries);
|
||||
WARN("ARD TCP [%p-%p] arg=%p retries=%d pend.close:%d\n", (_ttcp)?_ttcp->tpcb:0, pcb, arg,
|
||||
tcp_poll_retries, pending_close);
|
||||
if (_ttcp) tcp_send_data(_ttcp);
|
||||
else WARN("ttcp NULL!");
|
||||
|
||||
if (pending_close)
|
||||
{
|
||||
|
@ -361,9 +361,10 @@ static err_t atcp_poll_conn(void *arg, struct tcp_pcb *pcb) {
|
|||
return ERR_ABRT;
|
||||
}
|
||||
|
||||
WARN("ARD TCP [%p-%p] arg=%p retries=%d\n", (_ttcp)?_ttcp->tpcb:0, pcb, arg, tcp_poll_retries);
|
||||
WARN("ARD TCP [%p-%p] arg=%p retries=%d pend.close:%d\n", (_ttcp)?_ttcp->tpcb:0, pcb, arg,
|
||||
tcp_poll_retries, pending_close);
|
||||
|
||||
if (_ttcp) tcp_send_data(_ttcp);
|
||||
else WARN("ttcp NULL!");
|
||||
|
||||
if (pending_close)
|
||||
{
|
||||
|
|
|
@ -46,6 +46,12 @@ if ((enableDebug & INFO_TCP_FLAG)&&(verboseDebug & INFO_TCP_FLAG)) \
|
|||
if (enableDebug & INFO_SPI_FLAG) printk("I-[%s] " msg , __func__ , ##args ); \
|
||||
} while (0)
|
||||
|
||||
#define INFO_SPI_VER(msg, args...) do { \
|
||||
if ((enableDebug & INFO_SPI_FLAG)&&(verboseDebug & INFO_SPI_FLAG)) \
|
||||
printk("I-[%s] " msg , __func__ , ##args ); \
|
||||
} while (0)
|
||||
|
||||
|
||||
#define INFO_UTIL(msg, args...) do { \
|
||||
if (enableDebug & INFO_UTIL_FLAG) printk("I-[%s] " msg , __func__ , ##args ); \
|
||||
} while (0)
|
||||
|
|
Loading…
Reference in New Issue