From b70fe0e956c692abe06644c36a1b2b185dab424e Mon Sep 17 00:00:00 2001 From: Dawid Buchwald Date: Sat, 8 Jan 2022 18:53:46 +0100 Subject: [PATCH] Added RTS/DTR status message --- src/serialupdi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/serialupdi.c b/src/serialupdi.c index 32fffb99..e2c14f5e 100644 --- a/src/serialupdi.c +++ b/src/serialupdi.c @@ -583,6 +583,10 @@ static int serialupdi_initialize(PROGRAMMER * pgm, AVRPART * p) } avrdude_message(MSG_INFO, "%s: UPDI link initialization OK\n", progname); + if (updi_get_rts_mode(pgm) != RTS_MODE_DEFAULT) { + avrdude_message(MSG_INFO, "%s: Forcing serial DTR/RTS handshake lines %s\n", progname, updi_get_rts_mode(pgm) == RTS_MODE_LOW ? "LOW" : "HIGH"); + } + if (updi_read_cs(pgm, UPDI_ASI_SYS_STATUS, &value)<0) { /* let's try reset the connection */