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);
/* Define the target subroutine names */
-static struct target_ops es1800_ops =
+struct target_ops es1800_ops =
{
"es1800", /* to_shortname */
/* to_longname */
/* Define the target subroutine names */
-static struct target_ops es1800_child_ops =
+struct target_ops es1800_child_ops =
{
"es1800_process", /* to_shortname */
/* to_longname */