Browse Source

stmloader serial fix from lianj

git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@221 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
master
timecop@gmail.com 12 years ago
parent
commit
ab509889ca
  1. 2
      support/stmloader/serial.c

2
support/stmloader/serial.c

@ -85,7 +85,7 @@ serialStruct_t *initSerial(const char *port, unsigned int baud, char ctsRts) {
cfsetospeed(&options, baud);
#endif
options.c_cflag = CRTSCTS | CS8 | CLOCAL | CREAD;
options.c_cflag |= CRTSCTS | CS8 | CLOCAL | CREAD;
options.c_iflag = IGNPAR;
options.c_iflag &= (~(IXON|IXOFF|IXANY)); // turn off software flow control
options.c_oflag = 0;

Loading…
Cancel
Save