More fixes to the AVRISP command timeout system so that it should no longer lock up while processing command no matter what the conditions.

This commit is contained in:
Dean Camera 2010-02-21 06:26:33 +00:00
parent 12a01ed72d
commit e322f14620
8 changed files with 58 additions and 31 deletions

View file

@ -42,8 +42,6 @@ uint32_t CurrentAddress;
/** Flag to indicate that the next read/write operation must update the device's current address */
bool MustSetAddress;
bool CommandTimedOut;
/** Initializes the hardware and software associated with the V2 protocol command handling. */
void V2Protocol_Init(void)
{
@ -70,7 +68,7 @@ void V2Protocol_ProcessCommand(void)
{
uint8_t V2Command = Endpoint_Read_Byte();
CommandTimedOut = false;
TimeoutMSRemaining = COMMAND_TIMEOUT_MS;
switch (V2Command)
{