diff options
author | Dean Camera <[email protected]> | 2010-01-17 04:39:33 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2010-01-17 04:39:33 +0000 |
commit | f3d370a7778dc8e374efc3b76e26f8ecefc27e84 (patch) | |
tree | 8e6b6a3842e05e78d7bb51a38975ff09286558c0 /Projects/AVRISP-MKII/Lib/V2ProtocolParams.c | |
parent | b0ce1eab668ac2e4779bbf8c3e6ef193d0ab0368 (diff) | |
download | qmk_firmware-f3d370a7778dc8e374efc3b76e26f8ecefc27e84.tar.gz qmk_firmware-f3d370a7778dc8e374efc3b76e26f8ecefc27e84.zip |
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.
Diffstat (limited to 'Projects/AVRISP-MKII/Lib/V2ProtocolParams.c')
-rw-r--r-- | Projects/AVRISP-MKII/Lib/V2ProtocolParams.c | 2 |
1 files changed, 1 insertions, 1 deletions
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;
|