Added RTS/DTR status message

This commit is contained in:
Dawid Buchwald 2022-01-08 18:53:46 +01:00
parent 1631fc4dd8
commit b70fe0e956
1 changed files with 4 additions and 0 deletions

View File

@ -583,6 +583,10 @@ static int serialupdi_initialize(PROGRAMMER * pgm, AVRPART * p)
} }
avrdude_message(MSG_INFO, "%s: UPDI link initialization OK\n", progname); 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) { if (updi_read_cs(pgm, UPDI_ASI_SYS_STATUS, &value)<0) {
/* let's try reset the connection */ /* let's try reset the connection */