Minor changes to the AVRISP project for code clarity.
This commit is contained in:
parent
8bb007f80b
commit
c647c27639
4 changed files with 14 additions and 17 deletions
|
@ -120,11 +120,11 @@ void Process_AVRISP_Commands(void)
|
|||
|
||||
Endpoint_SelectEndpoint(AVRISP_DATA_EPNUM);
|
||||
|
||||
/* Check to see if a V2 Protocol command has been received - if not, abort */
|
||||
if (!(Endpoint_IsOUTReceived()))
|
||||
return;
|
||||
|
||||
/* Pass off processing of the V2 Protocol command to the V2 Protocol handler */
|
||||
V2Protocol_ProcessCommand();
|
||||
/* Check to see if a V2 Protocol command has been received */
|
||||
if (Endpoint_IsOUTReceived())
|
||||
{
|
||||
/* Pass off processing of the V2 Protocol command to the V2 Protocol handler */
|
||||
V2Protocol_ProcessCommand();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue