/* Processes incoming V2 Protocol commands from the host, returning a response when required.  */
void AVRISP_Task(void)
/* Processes incoming V2 Protocol commands from the host, returning a response when required.  */
void AVRISP_Task(void)
{
	if (USB_DeviceState != DEVICE_STATE_Configured)
	  return;
	V2Params_UpdateParamValues();
	Endpoint_SelectEndpoint(AVRISP_DATA_OUT_EPADDR);
	if (Endpoint_IsOUTReceived())
	{
		LEDs_SetAllLEDs(LEDMASK_BUSY);
		V2Protocol_ProcessCommand();
		LEDs_SetAllLEDs(LEDMASK_USB_READY);
	}
}