Skip to content
Commit 976520c7 authored by Marcin Niestroj's avatar Marcin Niestroj Committed by Carles Cufí
Browse files

settings: file: do not create file when loading



File backend can be read-only with the use of `settings_file_src()` API. It
makes no sense to create file when `settings_load()` is called and
registered file backend won't be used for saving files (because
`settings_file_dst()` was not used).

Do not create file during `settings_load()` if it does not exist yet. This
just requires to remove FS_O_CREATE flag in `fs_open()` invocation.

Open file with read-only access, which is now possible after removal of
`FS_O_CREATE` flag.

Signed-off-by: default avatarMarcin Niestroj <m.niestroj@emb.dev>
parent 37c41101
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment