Skip to content

Commit

Permalink
Fix: UDP/DNS with TUN/RF24Mesh
Browse files Browse the repository at this point in the history
- Add defines to enable UDP/DNS while using RF24Mesh
  • Loading branch information
TMRh20 committed Jan 17, 2015
1 parent 4120ba2 commit a393f97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions RF24Ethernet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ void RF24EthernetClass::tick() {
network_send();
}
}

#endif
#if UIP_UDP
for(int i = 0; i < UIP_UDP_CONNS; i++) {
uip_udp_periodic(i);
Expand All @@ -254,7 +254,7 @@ void RF24EthernetClass::tick() {
}
}
#endif /* UIP_UDP */

#if defined (RF24_TAP)
/* Call the ARP timer function every 10 seconds. */

if(timer_expired(&Ethernet.arp_timer)) {
Expand All @@ -263,6 +263,7 @@ void RF24EthernetClass::tick() {
}

}

#endif //RF24_TAP
}

Expand Down
2 changes: 1 addition & 1 deletion RF24Ethernet.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ extern RF24EthernetClass RF24Ethernet;
*
* @section News Update News
*
* \version <b>1.21b - Jan 16 2015</b>
* \version <b>1.22b - Jan 16 2015</b>
* - Add UDP support
* - Add DNS support
* - Add support for up to 512 byte buffer size
Expand Down

0 comments on commit a393f97

Please sign in to comment.