Browse Source

Bugfix: fpgautils: Only try to change baud rate when requested

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

+ 1 - 0
fpgautils.c

@@ -841,6 +841,7 @@ int serial_open(const char *devpath, unsigned long baud, uint8_t timeout, bool p
 	termios_debug(devpath, &my_termios, "before");
 #endif
 
+	if (baud)
 	{
 		speed_t speed = tiospeed_t(baud);
 		if (speed == B0)