/* Handler for unknown V2 protocol commands. This discards all sent data and returns a STATUS_CMD_UNKNOWN status back to the host. */
static void V2Protocol_UnknownCommand(const uint8_t V2Command)
/* Handler for unknown V2 protocol commands. This discards all sent data and returns a STATUS_CMD_UNKNOWN status back to the host. */
static void V2Protocol_UnknownCommand(const uint8_t V2Command)
{
	while (Endpoint_BytesInEndpoint() == AVRISP_DATA_EPSIZE)
	{
		Endpoint_ClearOUT();
		Endpoint_WaitUntilReady();
	}
	Endpoint_ClearOUT();
	Endpoint_SelectEndpoint(AVRISP_DATA_IN_EPADDR);
	Endpoint_SetEndpointDirection(ENDPOINT_DIR_IN);
	Endpoint_Write_8(V2Command);
	Endpoint_Write_8(STATUS_CMD_UNKNOWN);
	Endpoint_ClearIN();
}