Refs #1004. Corrected return value in function FlashSwitchBlock() of the port template.

git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@747 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
Frank Voorburg 2020-02-17 09:54:29 +00:00
parent 8533673714
commit 8be50f96f1
1 changed files with 6 additions and 0 deletions

View File

@ -618,8 +618,14 @@ static tFlashBlockInfo *FlashSwitchBlock(tFlashBlockInfo *block, blt_addr base_a
base_addr = flashLayout[0].sector_start;
result = block;
}
/* no switching between the generic block and the bootblock needed. it is a switch
* within a generic block. the current block needs to be first programmed before a
* switch to the new one can be make.
*/
else
{
/* start by initializing the result to success */
result = block;
/* need to switch to a new block, so program the current one and init the next */
if (FlashWriteBlock(block) == BLT_FALSE)
{