Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Merged
merged 1 commit into from

3 participants

@eranws

fixed setup on windows (missed baud)

@kylemcdonald

this looks good to me, thanks for pointing out that serial.setup("COM4"); was missing the baud.

@bilderbuchi
Owner

Can't test this, but it's a small change. +1 from me.

@kylemcdonald kylemcdonald merged commit 2d76097 into openframeworks:develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 30, 2012
  1. @eranws

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

    eranws authored
    fixed setup on windows (missed baud)
This page is out of date. Refresh to see the latest.
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;
Something went wrong with that request. Please try again.