Set back to programming mode on quit

Otherwise it can't read the fuses and the safe fuse code complains.
This commit is contained in:
David Fries 2015-01-01 19:08:14 -06:00 committed by Andrej Shadura
parent e3338c428f
commit 112b6edd1c
No known key found for this signature in database
GPG Key ID: 2526E9EB828A8F35
1 changed files with 4 additions and 0 deletions

View File

@ -541,6 +541,10 @@ static int cmd_sig(PROGRAMMER * pgm, struct avrpart * p,
static int cmd_quit(PROGRAMMER * pgm, struct avrpart * p,
int argc, char * argv[])
{
/* FUSE bit verify will fail if left in SPI mode */
if (spi_mode) {
cmd_pgm(pgm, p, 0, NULL);
}
return 1;
}