From 161f06e046385d1d909131aeb9b7482da5e445e2 Mon Sep 17 00:00:00 2001 From: Brett Nicholas <7547222+bigbrett@users.noreply.github.com> Date: Wed, 31 Jul 2024 12:32:13 -0600 Subject: [PATCH] fix variable name typo --- hal/aurix_tc3xx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hal/aurix_tc3xx.c b/hal/aurix_tc3xx.c index 2e1840598..ff68f387c 100644 --- a/hal/aurix_tc3xx.c +++ b/hal/aurix_tc3xx.c @@ -201,13 +201,13 @@ static void RAMFUNCTION programCachedSector(uint32_t sectorAddress, for (offset = 0; offset < IFXFLASH_PFLASH_BURST_LENGTH / (2 * sizeof(uint32_t)); offset++) { - bufferIndex = + bufferIdx = burstIdx * (IFXFLASH_PFLASH_BURST_LENGTH / sizeof(uint32_t)) + (offset * 2); IfxFlash_loadPage2X32(UNUSED_PARAMETER, - sectorBuffer[bufferIndex], - sectorBuffer[bufferIndex + 1]); + sectorBuffer[bufferIdx], + sectorBuffer[bufferIdx + 1]); } /* Write the page */