From f9c0357b731e5ca4a5456056bbbe2e4a8a2dc9fe Mon Sep 17 00:00:00 2001
From: Dean Camera <dean@fourwalledcubicle.com>
Date: Mon, 24 Aug 2009 10:08:02 +0000
Subject: [PATCH] Fixed V2 Protocol READ_FLASH_ISP and READ_EEPROM_ISP handler
 code in the AVRISP project.

---
 Projects/Incomplete/AVRISP/Lib/V2Protocol.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/Projects/Incomplete/AVRISP/Lib/V2Protocol.c b/Projects/Incomplete/AVRISP/Lib/V2Protocol.c
index cffb91e02..7bb8f71ca 100644
--- a/Projects/Incomplete/AVRISP/Lib/V2Protocol.c
+++ b/Projects/Incomplete/AVRISP/Lib/V2Protocol.c
@@ -344,16 +344,7 @@ static void V2Protocol_Command_ReadMemory(uint8_t V2Command)
 	}
 
 	Endpoint_Write_Byte(STATUS_CMD_OK);
-	
-	bool EndpointBankFull = Endpoint_IsReadWriteAllowed();
 	Endpoint_ClearIN();
-	
-	/* Ensure data transfer is terminated by a short packet if the last sent bank was completely full */
-	if (EndpointBankFull)
-	{
-		Endpoint_WaitUntilReady();
-		Endpoint_ClearIN();
-	}
 }
 
 static void V2Protocol_Command_ChipErase(void)
-- 
GitLab