Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #17 from Scanomat/master
Browse files Browse the repository at this point in the history
Disabled input processing
  • Loading branch information
yeokm1 authored Jan 26, 2020
2 parents 86625ee + e37d2df commit 46a834e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/SwiftSerial.swift
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ public class SerialPort {
settings.c_cflag &= ~tcflag_t(CSIZE)
settings.c_cflag |= dataBitsSize.flagValue

//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)

// Set hardware flow control flag
#if os(Linux)
if useHardwareFlowControl {
Expand Down

0 comments on commit 46a834e

Please sign in to comment.