added info message about ignoring -o if -l and -o are both passed

pull/10/head
Maximilian Pachl 2015-10-13 23:53:02 +02:00
parent dd13fc6eab
commit e00c34b286
1 changed files with 3 additions and 0 deletions

View File

@ -175,6 +175,9 @@ int main(int argc, char **argv)
sprintf(buf, "L\r"); sprintf(buf, "L\r");
write(fd, buf, strlen(buf)); write(fd, buf, strlen(buf));
if (send_open)
printf("ignoring -o, due to listen-only option -l\n");
} else if (send_open) { } else if (send_open) {
sprintf(buf, "O\r"); sprintf(buf, "O\r");
write(fd, buf, strlen(buf)); write(fd, buf, strlen(buf));