diff --git a/ChangeLog b/ChangeLog index 2e4c3764..04900b6a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2021-11-07 Joerg Wunsch + + bug #55734: USBtiny programming of ATmega328p broken by Patch #9278 + * usbtiny.c (usbtiny_initialize): undo change from patch #9728 + 2021-11-07 Joerg Wunsch bug #55009: no efuses for m164a/pa diff --git a/NEWS b/NEWS index 98afae8c..0c09a7bd 100644 --- a/NEWS +++ b/NEWS @@ -60,6 +60,7 @@ Current: bug #57453: [PATCH] fix reference to nonexistant -m option by changing to -U bug #59227: Add new part. How does one get a part added to the CONF file? bug #55009: no efuses for m164a/pa + bug #55734: USBtiny programming of ATmega328p broken by Patch #9278 * Patches: patch #9482: Add support for UPDI and AVR8X @@ -82,7 +83,6 @@ 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 patch #9893: [PATCH] Reader reads ftdi handle after main thread close it patch #9819: Address several leaks in SVN rev 1429 patch #9820: Fix some out-of-bounds/uninitialized issues diff --git a/usbtiny.c b/usbtiny.c index 080c9df2..0360d68f 100644 --- a/usbtiny.c +++ b/usbtiny.c @@ -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,