From f3d370a7778dc8e374efc3b76e26f8ecefc27e84 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 17 Jan 2010 04:39:33 +0000 Subject: Clean up and add more comments to the AVRISP-MKII project. Make sure the SPI_MULTI command handler supports multiple packet responses. Use slightly smaller/faster repeated indirect-load commands when retrieving the PDI target's memory CRCs. --- Projects/AVRISP-MKII/Lib/V2ProtocolParams.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Projects/AVRISP-MKII/Lib/V2ProtocolParams.c') diff --git a/Projects/AVRISP-MKII/Lib/V2ProtocolParams.c b/Projects/AVRISP-MKII/Lib/V2ProtocolParams.c index c2595e78f6..00788515dd 100644 --- a/Projects/AVRISP-MKII/Lib/V2ProtocolParams.c +++ b/Projects/AVRISP-MKII/Lib/V2ProtocolParams.c @@ -170,7 +170,7 @@ static ParameterItem_t* V2Params_GetParamFromTable(const uint8_t ParamID) ParameterItem_t* CurrTableItem = ParameterTable; /* Find the parameter in the parameter table if present */ - for (uint8_t TableIndex = 0; TableIndex < (sizeof(ParameterTable) / sizeof(ParameterTable[0])); TableIndex++) + for (uint8_t TableIndex = 0; TableIndex < TABLE_PARAM_COUNT; TableIndex++) { if (ParamID == CurrTableItem->ParamID) return CurrTableItem; -- cgit v1.2.3