Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of RF22 by
Diff: RF22Router.cpp
- Revision:
- 5:0386600f3408
- Parent:
- 0:79c6d0071c4c
diff -r f0bf38bb0ff8 -r 0386600f3408 RF22Router.cpp
--- 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;
}
-
