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:
parent
536816087b
commit
bb7be5efe6
|
@ -3,3 +3,11 @@
|
||||||
Submitted by Milan Kupcevic:
|
Submitted by Milan Kupcevic:
|
||||||
patch #9735: spelling error fix: psuedo -> pseudo
|
patch #9735: spelling error fix: psuedo -> pseudo
|
||||||
* avrpart.c (avr_display): Spelling fix
|
* 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
1
NEWS
|
@ -66,6 +66,7 @@ Current:
|
||||||
patch #8128: Added new option to configure.ac script
|
patch #8128: Added new option to configure.ac script
|
||||||
patch #8444: Proposal for modifications in -B and -U command options managment (partially)
|
patch #8444: Proposal for modifications in -B and -U command options managment (partially)
|
||||||
patch #9735: spelling error fix: psuedo -> pseudo
|
patch #9735: spelling error fix: psuedo -> pseudo
|
||||||
|
patch #9728: Fix UsbTiny programmer
|
||||||
|
|
||||||
* Internals:
|
* Internals:
|
||||||
- New avrdude.conf keyword "family_id", used to verify SIB attributes
|
- New avrdude.conf keyword "family_id", used to verify SIB attributes
|
||||||
|
|
|
@ -502,7 +502,7 @@ static int usbtiny_initialize (PROGRAMMER *pgm, AVRPART *p )
|
||||||
}
|
}
|
||||||
|
|
||||||
for (tries = 0; tries < 4; ++tries) {
|
for (tries = 0; tries < 4; ++tries) {
|
||||||
if (pgm->program_enable(pgm, p) >= 0)
|
if (pgm->program_enable(pgm, p) == 0)
|
||||||
break;
|
break;
|
||||||
// no response, RESET and try again
|
// no response, RESET and try again
|
||||||
if (usb_control(pgm, USBTINY_POWERUP,
|
if (usb_control(pgm, USBTINY_POWERUP,
|
||||||
|
|
Loading…
Reference in New Issue