From ec9068ba426dcd817a64d1c395a61894b497a87c Mon Sep 17 00:00:00 2001 From: Nav Date: Wed, 1 Jun 2022 21:47:06 +0100 Subject: [PATCH] Fixed typo causing invalid AVR CMSIS command packet sizes --- .../Protocols/CMSIS-DAP/VendorSpecific/EDBG/EdbgInterface.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/EdbgInterface.hpp b/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/EdbgInterface.hpp index 32e8df0d..ef081bde 100644 --- a/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/EdbgInterface.hpp +++ b/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/EdbgInterface.hpp @@ -41,7 +41,7 @@ namespace Bloom::DebugToolDrivers::Protocols::CmsisDap::Edbg // An AVR command frame can be split into multiple CMSIS-DAP commands. Each command // containing a fragment of the AvrCommandFrame. return this->sendAvrCommandsAndWaitForResponse(avrCommandFrame.generateAvrCommands( - this->getUsbHidInputReportSize() - 3 // Minus 3 to accommodate AVR command bytes + this->getUsbHidInputReportSize() - 4 // Minus 4 to accommodate AVR command bytes )); }