Skip to content

Commit

Permalink
Release 6.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxin-azrtos committed Jul 28, 2021
1 parent d4089f5 commit 61f92c0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR)

# Set up the project
project(levelx
VERSION 6.0.0
LANGUAGES C ASM
)

Expand Down
7 changes: 5 additions & 2 deletions common/inc/lx_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/* APPLICATION INTERFACE DEFINITION RELEASE */
/* */
/* lx_api.h PORTABLE C */
/* 6.1.7 */
/* 6.1.8 */
/* AUTHOR */
/* */
/* William E. Lamie, Microsoft Corporation */
Expand Down Expand Up @@ -55,6 +55,9 @@
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
/* added standalone support, */
/* resulting in version 6.1.7 */
/* 08-02-2021 William E. Lamie Modified comment(s), and */
/* updated product constants, */
/* resulting in version 6.1.8 */
/* */
/**************************************************************************/

Expand Down Expand Up @@ -159,7 +162,7 @@ typedef unsigned long long ULONG64;
#define AZURE_RTOS_LEVELX
#define LEVELX_MAJOR_VERSION 6
#define LEVELX_MINOR_VERSION 1
#define LEVELX_PATCH_VERSION 7
#define LEVELX_PATCH_VERSION 8


/* Define general LevelX Constants. */
Expand Down
7 changes: 5 additions & 2 deletions common/src/lx_nand_flash_block_reclaim.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
/* FUNCTION RELEASE */
/* */
/* _lx_nand_flash_block_reclaim PORTABLE C */
/* 6.1.7 */
/* 6.1.8 */
/* AUTHOR */
/* */
/* William E. Lamie, Microsoft Corporation */
Expand Down Expand Up @@ -88,6 +88,9 @@
/* resulting in version 6.1 */
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
/* resulting in version 6.1.7 */
/* 08-02-2021 Bhupendra Naphade Modified comment(s), updated */
/* obselete page count check, */
/* resulting in version 6.1.8 */
/* */
/**************************************************************************/
UINT _lx_nand_flash_block_reclaim(LX_NAND_FLASH *nand_flash)
Expand Down Expand Up @@ -131,7 +134,7 @@ UINT status;
}

/* Determine if this block is completely obsolete. */
if (obsolete_pages == nand_flash -> lx_nand_flash_pages_per_block)
if (obsolete_pages == nand_flash -> lx_nand_flash_pages_per_block - 1)
{

/* Read page 0 of the block, which has the erase count in the first 4 bytes. */
Expand Down

0 comments on commit 61f92c0

Please sign in to comment.