Skip to content

Commit

Permalink
Merge pull request #47 from tomkimsour/fix/example-typo
Browse files Browse the repository at this point in the history
Fix typo and format of example
  • Loading branch information
gbmhunter authored May 12, 2024
2 parents 6efc924 + 6c22e56 commit fa4ef47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/FlowControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ using namespace mn::CppLinuxSerial;

int main() {
// This example relies on a serial device which echos serial data at 9600 baud, 8n1.
std::cout << __FILE__ << "::" << __func__ << called." << std::endl;
std::cout << __FILE__ << "::" << __func__ << " called." << std::endl;
SerialPort serialPort("/dev/ttyACM0", BaudRate::B_9600, NumDataBits::EIGHT, Parity::NONE, NumStopBits::ONE, HardwareFlowControl::ON, SoftwareFlowControl::OFF);
serialPort.SetTimeout(1000); // Block when reading for 1000ms

serialPort.Open();
serialPort.Open();

std::this_thread::sleep_for(100ms);

Expand Down

0 comments on commit fa4ef47

Please sign in to comment.