diff --git a/examples/communication/serialExample/src/testApp.cpp b/examples/communication/serialExample/src/testApp.cpp index 2a4d2a48cfc..1fe6ace6215 100644 --- a/examples/communication/serialExample/src/testApp.cpp +++ b/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;