Commit c25cadd95efc705ea25103facf8608249dcf7204

Authored by Geoffrey Hunter
2 parents 0528cdd1 d8e1cd1e

Merge branch 'develop'

CHANGELOG.md
... ... @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7 7  
8 8 ## [Unreleased]
9 9  
  10 +## [v2.1.1] - 2021-04-05
  11 +
  12 +- Fixed bug where `echo` was not being set correctly.
  13 +
10 14 ## [v2.1.0] - 2020-11-08
11 15  
12 16 ### Added
... ...
src/SerialPort.cpp
... ... @@ -347,7 +347,12 @@ namespace CppLinuxSerial {
347 347 // Canonical input is when read waits for EOL or EOF characters before returning. In non-canonical mode, the rate at which
348 348 // read() returns is instead controlled by c_cc[VMIN] and c_cc[VTIME]
349 349 tty.c_lflag &= ~ICANON; // Turn off canonical input, which is suitable for pass-through
350   - echo_ ? (tty.c_lflag | ECHO ) : (tty.c_lflag & ~(ECHO)); // Configure echo depending on echo_ boolean
  350 + // Configure echo depending on echo_ boolean
  351 + if(echo_) {
  352 + tty.c_lflag |= ECHO;
  353 + } else {
  354 + tty.c_lflag &= ~(ECHO);
  355 + }
351 356 tty.c_lflag &= ~ECHOE; // Turn off echo erase (echo erase only relevant if canonical input is active)
352 357 tty.c_lflag &= ~ECHONL; //
353 358 tty.c_lflag &= ~ISIG; // Disables recognition of INTR (interrupt), QUIT and SUSP (suspend) characters
... ...