Fixed issues with EEPROM and FLASH ISP programming in the AVRISP project.
This commit is contained in:
parent
b6a4584a19
commit
5f363996e3
3 changed files with 10 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue