Fixed issues with EEPROM and FLASH ISP programming in the AVRISP project.

This commit is contained in:
Dean Camera 2010-02-01 03:42:10 +00:00
parent b6a4584a19
commit 5f363996e3
3 changed files with 10 additions and 8 deletions

View file

@ -128,7 +128,7 @@ uint8_t ISPTarget_WaitForProgComplete(const uint8_t ProgrammingMode, const uint1
SPI_SendByte(PollAddress >> 8);
SPI_SendByte(PollAddress & 0xFF);
}
while ((SPI_TransferByte(0x00) != PollValue) && TimeoutMSRemaining);
while ((SPI_TransferByte(0x00) == PollValue) && TimeoutMSRemaining);
if (!(TimeoutMSRemaining))
ProgrammingStatus = STATUS_CMD_TOUT;