aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2010-09-05 21:43:06 -0400
committerbnewbold <bnewbold@robocracy.org>2010-09-05 21:43:06 -0400
commit16b4c1fce5b1023cfb8210f9c12f09c71d4a755d (patch)
tree5e24ad36801a94c2863a852f2d7a2b896ed4c83e
parent1c6f9a9b5e9f1896a6c3d1faa895af74b6c7e3e1 (diff)
downloadlibrambutan-16b4c1fce5b1023cfb8210f9c12f09c71d4a755d.tar.gz
librambutan-16b4c1fce5b1023cfb8210f9c12f09c71d4a755d.zip
fixed Serial crash bug
-rw-r--r--examples/test-session.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/test-session.cpp b/examples/test-session.cpp
index cfb81d0..bfc1e58 100644
--- a/examples/test-session.cpp
+++ b/examples/test-session.cpp
@@ -38,8 +38,12 @@ void setup() {
/* Set up the LED to blink */
pinMode(LED_PIN, OUTPUT);
+ /* Start up the serial ports */
+ Serial1.begin(9600);
+ Serial2.begin(9600);
+ Serial3.begin(9600);
+
/* Send a message out over COMM interface */
- Serial2.begin(9600); // if USART; 9600 is more compatible
COMM.println(" ");
COMM.println(" __ __ _ _");
COMM.println(" | \\/ | __ _ _ __ | | ___| |");