Explorar el Código

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

Thomas Buck hace 9 años
padre
commit
691cc5b862
Se han modificado 1 ficheros con 0 adiciones y 4 borrados
  1. 0
    4
      src/serial.c

+ 0
- 4
src/serial.c Ver fichero

@@ -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…
Cancelar
Guardar