diff --git a/RF24Client.cpp b/RF24Client.cpp index 5f40597..021edbb 100644 --- a/RF24Client.cpp +++ b/RF24Client.cpp @@ -30,7 +30,7 @@ int RF24Client::connect(IPAddress ip, uint16_t port) { uint32_t timer = millis(); -do{ +//do{ stop(); uip_ipaddr_t ipaddr; @@ -62,8 +62,8 @@ do{ } } - delay(25); -}while(millis()-timer < 175); + //delay(25); +//}while(millis()-timer < 175); #endif //Active open enabled diff --git a/uip-conf.h b/uip-conf.h index 15157ae..cef5fff 100644 --- a/uip-conf.h +++ b/uip-conf.h @@ -192,7 +192,7 @@ User Configuration Options #define UIP_CONF_RECEIVE_WINDOW UIP_CONF_BUFFER_SIZE * 2 - 1 - UIP_CONF_LLH_LEN - UIP_TCPIP_HLEN //This is set automatically to the max allowable size #endif -#define UIP_CONF_TCP_MSS UIP_CONF_RECEIVE_WINDOW +#define UIP_CONF_TCP_MSS OUTPUT_BUFFER_SIZE /** * CPU byte order.