- if ((ByteToWrite != Write_Memory_Params.PollValue1) && (V2Command == CMD_PROGRAM_FLASH_ISP))\r
- PollAddress = (((CurrentAddress & 0xFFFF) << 1) | IsOddByte);\r
- else if ((ByteToWrite != Write_Memory_Params.PollValue2) && (V2Command == CMD_PROGRAM_EEPROM_ISP))\r
- PollAddress = (CurrentAddress & 0xFFFF);\r
-\r
- ProgrammingStatus = V2Protocol_WaitForProgrammingComplete(PollAddress, Write_Memory_Params.ProgrammingMode);\r
-\r
+ if (ByteToWrite != PollValue)\r
+ {\r
+ if (V2Command == CMD_PROGRAM_FLASH_ISP)\r
+ PollAddress = (((CurrentAddress & 0xFFFF) << 1) | IsOddByte);\r
+ else\r
+ PollAddress = (CurrentAddress & 0xFFFF);\r
+ }\r
+ \r