From e00c34b286072c3cdfec956e2875b14a8143bf77 Mon Sep 17 00:00:00 2001 From: Maximilian Pachl Date: Tue, 13 Oct 2015 23:53:02 +0200 Subject: [PATCH] added info message about ignoring -o if -l and -o are both passed --- slcan_attach.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slcan_attach.c b/slcan_attach.c index 8be6485..3917d8a 100644 --- a/slcan_attach.c +++ b/slcan_attach.c @@ -175,6 +175,9 @@ int main(int argc, char **argv) sprintf(buf, "L\r"); write(fd, buf, strlen(buf)); + if (send_open) + printf("ignoring -o, due to listen-only option -l\n"); + } else if (send_open) { sprintf(buf, "O\r"); write(fd, buf, strlen(buf));