Library for HopeRF RFM22 / RFM22B transceiver module ported to mbed. Original Software from Mike McCauley (mikem@open.com.au) . See http://www.open.com.au/mikem/arduino/RF22/
Dependents: RF22_MAX_test_Send Geofence_receiver Geofence_sender Geofence_sender ... more
More Info about RFM22-modules like connecting and a demo-program see RF22-Notebook
Diff: RF22Router.cpp
- Revision:
- 5:0386600f3408
- Parent:
- 0:79c6d0071c4c
--- a/RF22Router.cpp Sun Feb 19 21:12:10 2012 +0000 +++ b/RF22Router.cpp Sat Mar 02 20:49:07 2013 +0000 @@ -9,7 +9,7 @@ // // Author: Mike McCauley (mikem@open.com.au) // Copyright (C) 2011 Mike McCauley -// $Id: RF22Router.cpp,v 1.6 2011/02/15 01:18:03 mikem Exp $ +// $Id: RF22Router.cpp,v 1.7 2012/05/30 01:51:25 mikem Exp $ // ported to mbed by Karl Zweimueller #include <mbed.h> @@ -106,10 +106,10 @@ _routes[RF22_ROUTING_TABLE_SIZE - 1].state = Invalid; } -#ifdef RF22_HAVE_SERIAL //////////////////////////////////////////////////////////////////// void RF22Router::printRoutingTable() { +#ifdef RF22_HAVE_SERIAL uint8_t i; for (i = 0; i < RF22_ROUTING_TABLE_SIZE; i++) { @@ -121,8 +121,8 @@ Serial.print(" State: "); Serial.println(_routes[i].state, DEC); } +#endif } -#endif //////////////////////////////////////////////////////////////////// boolean RF22Router::deleteRouteTo(uint8_t dest) @@ -305,4 +305,3 @@ } return false; } -