From f25bc5580634d6fee3d2d99409725c62a4af76f8 Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Mon, 8 Aug 2022 17:03:06 +0100 Subject: [PATCH] Treat -c* the same as -c*/s --- src/developer_opts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/developer_opts.c b/src/developer_opts.c index bd59e940..7e94aa15 100644 --- a/src/developer_opts.c +++ b/src/developer_opts.c @@ -1055,8 +1055,8 @@ void dev_output_pgm_defs(char *pgmid) { if((flags = strchr(pgmid, '/'))) *flags++ = 0; - if(!flags && !strcmp(pgmid, "*")) // Treat -c * as if it was -c */A - flags = "A"; + if(!flags && !strcmp(pgmid, "*")) // Treat -c * as if it was -c */s + flags = "s"; if(!*flags || !strchr("ASsrt", *flags)) { dev_info("%s: flags for developer option -c / not recognised\n", progname); @@ -1077,7 +1077,7 @@ void dev_output_pgm_defs(char *pgmid) { " $ avrdude -c */st | grep baudrate\n" " $ avrdude -c */r | sort\n" "Notes:\n" - " -c * is the same as -c */A\n" + " -c * is the same as -c */s\n" " This help message is printed using any unrecognised flag, eg, -c/h\n" " Leaving no space after -c can be an OK substitute for quoting in shells\n" " /s, /S and /A outputs are designed to be used as input in avrdude.conf\n"