From afb70ffab630878774c4b4d3228670fa55ae3637 Mon Sep 17 00:00:00 2001 From: AK6DN Date: Tue, 3 Apr 2018 12:56:32 -0700 Subject: [PATCH] Change serial port iflag from IGNPAR to INPCK per bobaboba 11/83 debug --- main.c | 3 ++- serial.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index fadb11a..94b9094 100644 --- a/main.c +++ b/main.c @@ -83,6 +83,7 @@ // so that BREAKs are handled correctly via setjmp/longjmp // Update tu58drive.c to intercept rx byte read routine to // detect input line BREAK and process as required. +// v2.0b - 03 Apr 2018 - donorth - Change iflags from PARMRK|IGNPAR to PARMRK|INPCK // @@ -93,7 +94,7 @@ static char copyright[] = "(C) 2005-2017 Don North , " \ "(C) 1984 Dan Ts'o "; -static char version[] = "tu58 tape emulator v2.0a"; +static char version[] = "tu58 tape emulator v2.0b"; static char port[32] = "1"; // default port number (COM1, /dev/ttyS0) static long speed = 9600; // default line speed diff --git a/serial.c b/serial.c index 77076c4..1375116 100644 --- a/serial.c +++ b/serial.c @@ -602,7 +602,7 @@ void devinit (char *port, INLCR | IGNCR | ICRNL | IXON | IXOFF | IUCLC | IXANY | PARMRK | IGNPAR ); #ifdef USE_PARMRK - line.c_iflag |= ( PARMRK | IGNPAR ); + line.c_iflag |= ( PARMRK | INPCK ); #else // !USE_PARMRK line.c_iflag |= ( 0 ); #endif // !USE_PARMRK