瀏覽代碼

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

Thomas Buck 8 年之前
父節點
當前提交
691cc5b862
共有 1 個檔案被更改,包括 0 行新增4 行删除
  1. 0
    4
      src/serial.c

+ 0
- 4
src/serial.c 查看文件

@@ -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…
取消
儲存