Serial.pp can't read CD, and has inappropriate SerFlush.
Original Reporter info from Mantis: MarkMLl @MarkMLl
-
Reporter name: Mark Morgan Lloyd
Original Reporter info from Mantis: MarkMLl @MarkMLl
- Reporter name: Mark Morgan Lloyd
Description:
The attached patch adds a function to read the state of the CD (carrier detect) signal. It also deprecates the existing SerFlush procedure, moving its questionable functionality into SerSync, and implements SerDrain, SerFlushInput and SerFlushOutput procedures.
Additional information:
The new SerDrain, SerFlushInput and SerFlushOutput procedures have functionality as expected by reference to the lower-level termio API.
Note that SerFlushInput and SerFlushOutput are destructive, while the original SerFlush is not.
The patch does not delete SerFlush lest anybody is using this for low-level serial comms operations.
Mantis conversion info:
- Mantis ID: 18946
- OS: unix
- OS Build: All
- Platform: All
- Version: 2.4.2
- Fixed in version: 3.0.0
- Fixed in revision: 26856 (#c2a9dccc)
- Target version: 3.0.0