Browse Source

Merge commit '31a47fc' into bfgminer

Luke Dashjr 12 years ago
parent
commit
ef71e3c2a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fpgautils.c

+ 1 - 1
fpgautils.c

@@ -718,13 +718,13 @@ int serial_open(const char *devpath, unsigned long baud, uint8_t timeout, bool p
 		applog(LOG_WARNING, "Unrecognized baud rate: %lu", baud);
 	}
 
+	my_termios.c_cflag &= ~(CSIZE | PARENB);
 	my_termios.c_cflag |= CS8;
 	my_termios.c_cflag |= CREAD;
 #ifdef USE_AVALON
 //	my_termios.c_cflag |= CRTSCTS;
 #endif
 	my_termios.c_cflag |= CLOCAL;
-	my_termios.c_cflag &= ~(CSIZE | PARENB);
 
 	my_termios.c_iflag &= ~(IGNBRK | BRKINT | PARMRK |
 				ISTRIP | INLCR | IGNCR | ICRNL | IXON);