Skip to content

Commit f575b2c

Browse files
committed
storage:add option to skip format on init fail
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent d7a4532 commit f575b2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/storage.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ struct storagecfg_t {
4646
uint8_t mode; /**< Storage mode @ref storage_mode_e */
4747
uint8_t on_full; /**< Action to be taken when storage is full @ref storage_action_e */
4848
uint8_t compression; /**< 1 to enable compression, 0 for no compression */
49-
uint8_t reserved; /**< reserved for future use */
49+
uint8_t noformat_onfail; /**< 0 will format storage space when configuration fails to load, Set 1 to disable format */
50+
uint16_t reserved; /**< reserved for future use */
5051
uint32_t packet_sz; /**< Approximate Average data packet size, this parameter is only used for storage estimation. does not limit data size for read/write */
5152
uint32_t max_storage; /**< Maximum number/count of data packets to store, storage full status is based on either max_storage is reached or storage memory <= resvd_mem */
5253
uint32_t reserved_mem;/**< Amount to reserved memory to keep in storage media, 16Kb minimum */

0 commit comments

Comments
 (0)