diff cmu200/main.c @ 68:3ec82dc1dbda

fc-cmu200d: implemented reading and parsing of cable config files (-c arg)
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 14 Jul 2017 04:34:15 +0000
parents 498b90f6e224
children 348c29b7d02a
line wrap: on
line diff
--- a/cmu200/main.c	Sun May 28 07:22:09 2017 +0000
+++ b/cmu200/main.c	Fri Jul 14 04:34:15 2017 +0000
@@ -19,14 +19,20 @@
 	extern int optind;
 	int c;
 
-	while ((c = getopt(argc, argv, "1at:")) != EOF)
+	while ((c = getopt(argc, argv, "12ac:t:")) != EOF)
 		switch (c) {
 		case '1':
 			cmu200_rf_port = 1;
 			continue;
+		case '2':
+			cmu200_rf_port = 2;
+			continue;
 		case 'a':
 			cmu200_tx_name = "AUXT";
 			continue;
+		case 'c':
+			read_cable_conf_file(optarg);
+			continue;
 		case 't':
 			bind_socket_pathname = optarg;
 			continue;