Added check if wifi shield is not present

This commit is contained in:
Mimmo La Fauci 2012-05-26 12:02:15 +02:00
parent 457de8502a
commit 5ce9067faa
1 changed files with 2 additions and 1 deletions

View File

@ -705,12 +705,13 @@ static err_t tcp_data_sent(void *arg, struct tcp_pcb *pcb, u16_t len) {
tcp_poll_retries = 0;
INFO_TCP("Packet sent pcb:%p len:%d dur:%d\n", pcb, len, timer_get_ms() - startTime);
if (_ttcp->left > 0) {
INFO_TCP("data left: %d\n", _ttcp->left );
tcp_send_data(_ttcp);
}
INFO_TCP("Packet sent len:%d dur:%d\n", len, timer_get_ms() - startTime);
return ERR_OK;
}