Skip to content

Commit

Permalink
Change serial port iflag from IGNPAR to INPCK per bobaboba 11/83 debug
Browse files Browse the repository at this point in the history
  • Loading branch information
AK6DN committed Apr 3, 2018
1 parent 5a83ea1 commit afb70ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
//


Expand All @@ -93,7 +94,7 @@
static char copyright[] = "(C) 2005-2017 Don North <ak6dn" "@" "mindspring.com>, " \
"(C) 1984 Dan Ts'o <Rockefeller University>";

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
Expand Down
2 changes: 1 addition & 1 deletion serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afb70ff

Please sign in to comment.