diff miscutil/fc-serterm.c @ 251:fb577c31e960

fc-serterm converted to use libserial
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 21 Sep 2017 23:25:02 +0000
parents e7502631a0f9
children
line wrap: on
line diff
--- a/miscutil/fc-serterm.c	Thu Sep 21 23:07:01 2017 +0000
+++ b/miscutil/fc-serterm.c	Thu Sep 21 23:25:02 2017 +0000
@@ -9,8 +9,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-int target_fd;
-
 main(argc, argv)
 	char **argv;
 {
@@ -18,7 +16,8 @@
 		fprintf(stderr, "usage: %s ttyname baudrate\n", argv[0]);
 		exit(1);
 	}
-	open_target_serial(argv[1], argv[2]);
+	open_serial_port(argv[1]);
+	set_fixed_baudrate(argv[2]);
 	tty_passthru();
 	exit(0);
 }