Browse Source

Fixed command line app checksum bug (ignored CR in binary input!)

Thomas Buck 9 years ago
parent
commit
691cc5b862
1 changed files with 0 additions and 4 deletions
  1. 0
    4
      src/serial.c

+ 0
- 4
src/serial.c View File

@@ -76,7 +76,6 @@ int serialOpen(const char *port, unsigned int baud) {
76 76
     }
77 77
 
78 78
     // Input Modes
79
-    options.c_iflag |= IGNCR; // Ignore CR
80 79
 #ifdef XONXOFF
81 80
     options.c_iflag |= IXON; // XON-XOFF Flow Control
82 81
 #endif
@@ -89,9 +88,6 @@ int serialOpen(const char *port, unsigned int baud) {
89 88
     options.c_cflag |= CREAD; // Enable Receiver
90 89
     options.c_cflag |= CLOCAL; // Ignore modem status lines
91 90
 
92
-    // Local Modes
93
-    options.c_lflag |= IEXTEN; // Extended input character processing
94
-
95 91
     // Special characters
96 92
     options.c_cc[VMIN] = 0; // Always return...
97 93
     options.c_cc[VTIME] = 0; // ..immediately from read()

Loading…
Cancel
Save