X-Git-Url: http://git.linex4red.de/pub/USBaspLoader.git/blobdiff_plain/a4f6908ad005ecea32d3ea0830e01785ffde6468..e096dee384220886d8a1c219e38fa43c63a75f9b:/firmware/main.c diff --git a/firmware/main.c b/firmware/main.c index 7e841e6..a59e50c 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -355,7 +355,7 @@ uchar isLast; data += 2; /* write page when we cross page boundary or we have the last partial page */ if((currentAddress.w[0] & (SPM_PAGESIZE - 1)) == 0 || (isLast && i >= len && isLastPage)){ -#if !HAVE_CHIP_ERASE +#if (!HAVE_CHIP_ERASE) || (HAVE_ONDEMAND_PAGEERASE) DBG1(0x33, 0, 0); # ifndef NO_FLASH_WRITE cli();