Skip to content

Commit

Permalink
Update examples/communication/serialExample/src/testApp.cpp
Browse files Browse the repository at this point in the history
fixed setup on windows (missed baud)
  • Loading branch information
eranws committed Oct 30, 2012
1 parent 367f29f commit 700a0d6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions examples/communication/serialExample/src/testApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 700a0d6

Please sign in to comment.