comparison rvinterf/lowlevel/rvifmain.c @ 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 6f078c4a5506
children d43dc6dfb44c
comparison
equal deleted inserted replaced
393:d3ee0de6b12e 394:a626f0ef542a
15 #include "../include/localsock.h" 15 #include "../include/localsock.h"
16 #include "client.h" 16 #include "client.h"
17 17
18 extern int target_fd, listener; 18 extern int target_fd, listener;
19 extern char *extlcd_program; 19 extern char *extlcd_program;
20 extern u_char extlcd_invert;
21 20
22 extern u_char rxpkt[]; 21 extern u_char rxpkt[];
23 extern size_t rxpkt_len; 22 extern size_t rxpkt_len;
24 23
25 struct client *client_head; 24 struct client *client_head;
48 extern int optind; 47 extern int optind;
49 int c; 48 int c;
50 fd_set fds; 49 fd_set fds;
51 struct client *cli, **clip; 50 struct client *cli, **clip;
52 51
53 while ((c = getopt(argc, argv, "bB:d:l:ns:S:vw:X:")) != EOF) 52 while ((c = getopt(argc, argv, "bB:d:l:ns:S:w:X:")) != EOF)
54 switch (c) { 53 switch (c) {
55 case 'b': 54 case 'b':
56 background++; 55 background++;
57 /* FALL THRU */ 56 /* FALL THRU */
58 case 'n': 57 case 'n':
70 case 's': 69 case 's':
71 socket_pathname = optarg; 70 socket_pathname = optarg;
72 continue; 71 continue;
73 case 'S': 72 case 'S':
74 socketpair_fd = atoi(optarg); 73 socketpair_fd = atoi(optarg);
75 continue;
76 case 'v':
77 extlcd_invert = 0xFF;
78 continue; 74 continue;
79 case 'w': 75 case 'w':
80 wakeup_after_sec = strtoul(optarg, 0, 0); 76 wakeup_after_sec = strtoul(optarg, 0, 0);
81 continue; 77 continue;
82 case 'X': 78 case 'X':