Make PERIOD and SERVER_REPLY configurable

This commit is contained in:
maniacbug 2011-08-09 01:02:16 -04:00 committed by David Kopf
parent 912ea85199
commit 1c53807727
3 changed files with 13 additions and 1 deletions

View file

@ -68,6 +68,7 @@ tcpip_handler(void)
UIP_IP_BUF->srcipaddr.u8[sizeof(UIP_IP_BUF->srcipaddr.u8) - 1]);
PRINTF("\n");
#if SERVER_REPLY
PRINTF("DATA sending reply\n");
uip_ipaddr_copy(&server_conn->ripaddr, &UIP_IP_BUF->srcipaddr);
uip_udp_packet_send(server_conn, "Reply", sizeof("Reply"));
uip_create_unspecified(&server_conn->ripaddr);