File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -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
Original file line number Diff line number Diff line change @@ -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
You can’t perform that action at this time.
0 commit comments