File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR)
22
33# Set up the project
44project (levelx
5- VERSION 6.0.0
65 LANGUAGES C ASM
76)
87
Original file line number Diff line number Diff line change 2626/* APPLICATION INTERFACE DEFINITION RELEASE */
2727/* */
2828/* lx_api.h PORTABLE C */
29- /* 6.1.7 */
29+ /* 6.1.8 */
3030/* AUTHOR */
3131/* */
3232/* William E. Lamie, Microsoft Corporation */
5555/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
5656/* added standalone support, */
5757/* resulting in version 6.1.7 */
58+ /* 08-02-2021 William E. Lamie Modified comment(s), and */
59+ /* updated product constants, */
60+ /* resulting in version 6.1.8 */
5861/* */
5962/**************************************************************************/
6063
@@ -159,7 +162,7 @@ typedef unsigned long long ULONG64;
159162#define AZURE_RTOS_LEVELX
160163#define LEVELX_MAJOR_VERSION 6
161164#define LEVELX_MINOR_VERSION 1
162- #define LEVELX_PATCH_VERSION 7
165+ #define LEVELX_PATCH_VERSION 8
163166
164167
165168/* Define general LevelX Constants. */
Original file line number Diff line number Diff line change 4040/* FUNCTION RELEASE */
4141/* */
4242/* _lx_nand_flash_block_reclaim PORTABLE C */
43- /* 6.1.7 */
43+ /* 6.1.8 */
4444/* AUTHOR */
4545/* */
4646/* William E. Lamie, Microsoft Corporation */
8888/* resulting in version 6.1 */
8989/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
9090/* resulting in version 6.1.7 */
91+ /* 08-02-2021 Bhupendra Naphade Modified comment(s), updated */
92+ /* obselete page count check, */
93+ /* resulting in version 6.1.8 */
9194/* */
9295/**************************************************************************/
9396UINT _lx_nand_flash_block_reclaim (LX_NAND_FLASH * nand_flash )
@@ -131,7 +134,7 @@ UINT status;
131134 }
132135
133136 /* Determine if this block is completely obsolete. */
134- if (obsolete_pages == nand_flash -> lx_nand_flash_pages_per_block )
137+ if (obsolete_pages == nand_flash -> lx_nand_flash_pages_per_block - 1 )
135138 {
136139
137140 /* Read page 0 of the block, which has the erase count in the first 4 bytes. */
You can’t perform that action at this time.
0 commit comments