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
     }
76
     }
77
 
77
 
78
     // Input Modes
78
     // Input Modes
79
-    options.c_iflag |= IGNCR; // Ignore CR
80
 #ifdef XONXOFF
79
 #ifdef XONXOFF
81
     options.c_iflag |= IXON; // XON-XOFF Flow Control
80
     options.c_iflag |= IXON; // XON-XOFF Flow Control
82
 #endif
81
 #endif
89
     options.c_cflag |= CREAD; // Enable Receiver
88
     options.c_cflag |= CREAD; // Enable Receiver
90
     options.c_cflag |= CLOCAL; // Ignore modem status lines
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
     // Special characters
91
     // Special characters
96
     options.c_cc[VMIN] = 0; // Always return...
92
     options.c_cc[VMIN] = 0; // Always return...
97
     options.c_cc[VTIME] = 0; // ..immediately from read()
93
     options.c_cc[VTIME] = 0; // ..immediately from read()

Loading…
Cancel
Save