changeset 394:a626f0ef542a

rvinterf: -v option removed, -X LCD output is always inverted
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 15 Mar 2018 00:41:24 +0000
parents d3ee0de6b12e
children 8027cc12f96a
files rvinterf/lowlevel/rviflcd.c rvinterf/lowlevel/rvifmain.c
diffstat 2 files changed, 3 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/rvinterf/lowlevel/rviflcd.c	Thu Mar 15 00:36:07 2018 +0000
+++ b/rvinterf/lowlevel/rviflcd.c	Thu Mar 15 00:41:24 2018 +0000
@@ -14,7 +14,6 @@
 
 char *extlcd_program;
 FILE *extlcd_pout;
-u_char extlcd_invert;
 
 void
 open_extlcd_pipe()
@@ -33,8 +32,8 @@
 
 	fprintf(extlcd_pout, "%u %u ", rxpkt[1], rxpkt[2]);
 	for (i = 3; i < rxpkt_len; i += 2)
-		fprintf(extlcd_pout, "%02X%02X", rxpkt[i+1] ^ extlcd_invert,
-			rxpkt[i] ^ extlcd_invert);
+		fprintf(extlcd_pout, "%02X%02X", rxpkt[i+1] ^ 0xFF,
+			rxpkt[i] ^ 0xFF);
 	fputc('\n', extlcd_pout);
 	fflush(extlcd_pout);
 }
--- a/rvinterf/lowlevel/rvifmain.c	Thu Mar 15 00:36:07 2018 +0000
+++ b/rvinterf/lowlevel/rvifmain.c	Thu Mar 15 00:41:24 2018 +0000
@@ -17,7 +17,6 @@
 
 extern int target_fd, listener;
 extern char *extlcd_program;
-extern u_char extlcd_invert;
 
 extern u_char rxpkt[];
 extern size_t rxpkt_len;
@@ -50,7 +49,7 @@
 	fd_set fds;
 	struct client *cli, **clip;
 
-	while ((c = getopt(argc, argv, "bB:d:l:ns:S:vw:X:")) != EOF)
+	while ((c = getopt(argc, argv, "bB:d:l:ns:S:w:X:")) != EOF)
 		switch (c) {
 		case 'b':
 			background++;
@@ -73,9 +72,6 @@
 		case 'S':
 			socketpair_fd = atoi(optarg);
 			continue;
-		case 'v':
-			extlcd_invert = 0xFF;
-			continue;
 		case 'w':
 			wakeup_after_sec = strtoul(optarg, 0, 0);
 			continue;