Submitted by Martino Facchin:

patch #9728: Fix UsbTiny programmer
* usbtiny.c (usbtiny_initialize): Only consider
pgm->program_enable successful if returning 0




git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1429 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2019-01-05 23:16:11 +00:00
parent 536816087b
commit bb7be5efe6
3 changed files with 10 additions and 1 deletions

View File

@ -3,3 +3,11 @@
Submitted by Milan Kupcevic:
patch #9735: spelling error fix: psuedo -> pseudo
* avrpart.c (avr_display): Spelling fix
2019-01-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
Submitted by Martino Facchin:
patch #9728: Fix UsbTiny programmer
* usbtiny.c (usbtiny_initialize): Only consider
pgm->program_enable successful if returning 0

1
NEWS
View File

@ -66,6 +66,7 @@ Current:
patch #8128: Added new option to configure.ac script
patch #8444: Proposal for modifications in -B and -U command options managment (partially)
patch #9735: spelling error fix: psuedo -> pseudo
patch #9728: Fix UsbTiny programmer
* Internals:
- New avrdude.conf keyword "family_id", used to verify SIB attributes

View File

@ -502,7 +502,7 @@ static int usbtiny_initialize (PROGRAMMER *pgm, AVRPART *p )
}
for (tries = 0; tries < 4; ++tries) {
if (pgm->program_enable(pgm, p) >= 0)
if (pgm->program_enable(pgm, p) == 0)
break;
// no response, RESET and try again
if (usb_control(pgm, USBTINY_POWERUP,