Reverted AVRISP-MKII clone project watchdog based command timeout patch in favour of a hardware timer, to allow for use in devices with WDTRST fuse programmed.
This commit is contained in:
parent
89f16f5d7f
commit
25ac76a251
8 changed files with 36 additions and 29 deletions
|
@ -73,7 +73,7 @@ void ISPProtocol_EnterISPMode(void)
|
|||
|
||||
/* Continuously attempt to synchronize with the target until either the number of attempts specified
|
||||
* by the host has exceeded, or the the device sends back the expected response values */
|
||||
while (Enter_ISP_Params.SynchLoops-- && !(TimeoutExpired))
|
||||
while (Enter_ISP_Params.SynchLoops-- && TimeoutTicksRemaining)
|
||||
{
|
||||
uint8_t ResponseBytes[4];
|
||||
|
||||
|
@ -523,7 +523,7 @@ void ISPProtocol_SPIMulti(void)
|
|||
*/
|
||||
void ISPProtocol_DelayMS(uint8_t DelayMS)
|
||||
{
|
||||
while (DelayMS-- && !(TimeoutExpired))
|
||||
while (DelayMS-- && TimeoutTicksRemaining)
|
||||
Delay_MS(1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue