Merge pull request #814 from dl8dtl/notify-open-failure

Notify user about open failure

Closes #813 (also closes #471)
This commit is contained in:
Jörg Wunsch 2022-01-09 20:30:10 +01:00 committed by GitHub
commit 5746bb2670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1061,6 +1061,9 @@ int main(int argc, char * argv [])
rc = pgm->open(pgm, port);
if (rc < 0) {
avrdude_message(MSG_INFO,
"%s: opening programmer \"%s\" on port \"%s\" failed\n",
progname, programmer, port);
exitrc = 1;
pgm->ppidata = 0; /* clear all bits at exit */
goto main_exit;