Skip to content

Commit 6d25abd

Browse files
committed
WriteOnlyAllowKeyRead flag now part of access byte
1 parent a396a62 commit 6d25abd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/storage/kvstore/include/InitModeFlags.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ MBED_SCOPED_ENUM_FLAGS(InitModeFlags) {
2323
Read = (1 << 0), //!< Enable read access from the KVStore
2424
Write = (1 << 1), //!< Enable write access to the KVStore
2525
ReadWrite = ((1 << 0) | (1 << 1)), //!< Enable read and write access to the KVSTore. This is the default.
26+
WriteOnlyAllowKeyRead = (1 << 3), //!< Allow reading KVStore keys even in write only mode
2627
Append = (1 << 8), //!< Allow adding to the the KVStore and create from new if necessary. This is the default.
2728
Truncate = (1 << 9), //!< Erase all key/value pairs before using.
2829
CreateNewOnly = (1 << 10), //!< Only open the KVStore if it does not already exist.
2930
ExclusiveCreation = (1 << 11), //!< Only open the KVStore if it already exists.
30-
WriteOnlyAllowKeyRead = (1 << 12), //!< Allow reading KVStore keys even in write only mode
3131

3232
#if !defined(DOXYGEN_ONLY)
3333
// These are for interal use only
3434
WriteOpenFlags = 0xf00,
3535
NoFlags = 0,
36-
AllFlags = 0x1f03
36+
AllFlags = 0xf07
3737

3838
#endif // DOXYGEN_ONLY
3939
};

0 commit comments

Comments
 (0)