Skip to content

Commit

Permalink
Slight reversion of prev changes
Browse files Browse the repository at this point in the history
- Remove loop & delay while connecting
- Set MSS to OUTPUT_BUFFER_SIZE
  • Loading branch information
TMRh20 committed Dec 18, 2015
1 parent 97e6b4c commit 2cf04ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions RF24Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ int RF24Client::connect(IPAddress ip, uint16_t port) {

uint32_t timer = millis();

do{
//do{

stop();
uip_ipaddr_t ipaddr;
Expand Down Expand Up @@ -62,8 +62,8 @@ do{

}
}
delay(25);
}while(millis()-timer < 175);
//delay(25);
//}while(millis()-timer < 175);

#endif //Active open enabled

Expand Down
2 changes: 1 addition & 1 deletion uip-conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2cf04ed

Please sign in to comment.