* remote.c, remote-mon.c, remote-utils.c, remote-utils.h,

target.h, remote-es.c, remote-nindy.c: Don't set baud rate if
	baud_rate is -1.  Remove sr_get_baud_rate and sr_set_baud_rate;
	just use the global variable itself.  When printing baud rate,
	don't print a baud rate if baud_rate is -1.
This commit is contained in:
Jim Kingdon
1994-02-26 01:52:39 +00:00
parent d643978558
commit c20c1bdf99
7 changed files with 72 additions and 26 deletions

View File

@@ -371,10 +371,13 @@ es1800_open (name, from_tty)
perror_with_name ("fcntl serial");
}
if (SERIAL_SETBAUDRATE (es1800_desc, baud_rate))
if (baud_rate != -1)
{
SERIAL_CLOSE (es1800_desc);
perror_with_name (name);
if (SERIAL_SETBAUDRATE (es1800_desc, baud_rate))
{
SERIAL_CLOSE (es1800_desc);
perror_with_name (name);
}
}
SERIAL_RAW (es1800_desc);