Skip to content
Browse files

Merge pull request #1673 from eranws/develop

Update examples/communication/serialExample/src/testApp.cpp
  • Loading branch information...
2 parents c2f6662 + 700a0d6 commit 2d760973aeeb3df6b8dbb4a089239facfa071409 @kylemcdonald kylemcdonald committed Nov 14, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 examples/communication/serialExample/src/testApp.cpp
View
11 examples/communication/serialExample/src/testApp.cpp
@@ -15,11 +15,12 @@ void testApp::setup(){
// this should be set to whatever com port your serial device is connected to.
// (ie, COM4 on a pc, /dev/tty.... on linux, /dev/tty... on a mac)
- // arduino users check in arduino app....
- serial.setup(0, 9600); //open the first device
- //serial.setup("COM4"); // windows example
- //serial.setup("/dev/tty.usbserial-A4001JEC",9600); // mac osx example
- //serial.setup("/dev/ttyUSB0", 9600); //linux example
+ // arduino users check in arduino app....
+ int baud = 9600;
+ serial.setup(0, baud); //open the first device
+ //serial.setup("COM4", baud); // windows example
+ //serial.setup("/dev/tty.usbserial-A4001JEC", baud); // mac osx example
+ //serial.setup("/dev/ttyUSB0", baud); //linux example
nTimesRead = 0;
nBytesRead = 0;

0 comments on commit 2d76097

Please sign in to comment.
Something went wrong with that request. Please try again.