Skip to content
Browse files

Update examples/communication/serialExample/src/testApp.cpp

fixed setup on windows (missed baud)
  • Loading branch information...
1 parent 367f29f commit 700a0d67a12a8c48a2896244e1b32ec63f1cce45 @eranws eranws committed
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 700a0d6

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