Skip to content

Commit

Permalink
fix(BLE): Fix PalFlashEraseSector, Decrement Erase by Sector Size (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinFairchild authored and EricB-ADI committed Oct 26, 2023
1 parent 081e8f2 commit 7ad58e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ void PalFlashWrite(void *pBuf, uint32_t size, uint32_t dstAddr)
/*!
* \brief Erase sector.
*
* \param[in] size Data size in bytes to be erased.
* \param[in] size Data size in sectors to be erased.
* \param[in] startAddr Word aligned address.
*
* \return None.
Expand All @@ -202,7 +202,7 @@ void PalFlashEraseSector(uint32_t size, uint32_t startAddr)
while(size) {
MXC_FLC_PageErase(startAddr);
startAddr += MXC_FLASH_PAGE_SIZE;
size -= MXC_FLASH_PAGE_SIZE;
size --;
}
}

Expand Down

0 comments on commit 7ad58e7

Please sign in to comment.