Skip to content

Commit 560753c

Browse files
committed
Size updated.
1 parent 09704fe commit 560753c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/wear_levelling/private_include/WL_Config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ typedef struct WL_Config_s {
2929
uint32_t wr_size; /*!< Minimum amount of bytes per one block at write operation: 1...*/
3030
uint32_t version; /*!< A version of current implementatioon. To erase and reallocate complete memory this ID must be different from id before.*/
3131
size_t temp_buff_size; /*!< Size of temporary allocated buffer to copy from one flash area to another. The best way, if this value will be equal to sector size.*/
32-
uint32_t reserved[5]; /*!< dummy array to make wl_config_t size compatible with flash encryption (divided by 16)*/
32+
uint32_t reserved[3]; /*!< dummy array to make wl_config_t size compatible with flash encryption (divided by 16)*/
3333
uint32_t crc; /*!< CRC for this config*/
3434
public:
3535
WL_Config_s()
3636
{
37-
for (int i=0 ; i< 5 ; i++) this->reserved[i] = 0;
37+
for (int i=0 ; i< 3 ; i++) this->reserved[i] = 0;
3838
}
3939
} wl_config_t;
4040

0 commit comments

Comments
 (0)