diff options
| author | Clayton Craft <clayton@craftyguy.net> | 2024-12-27 23:23:49 -0800 |
|---|---|---|
| committer | cooljqln <cooljqln@noreply.codeberg.org> | 2024-12-29 23:53:42 +0000 |
| commit | ff87c9217577783b60ee4cf466a3c59777a2fc40 (patch) | |
| tree | 458a5033f8052b8100d349b185437e8dd02deb24 /src/tangara/lua/lua_nvs.hpp | |
| parent | 92908533c48a9bc9b84e66a65c09f590858a6c45 (diff) | |
| download | tangara-fw-ff87c9217577783b60ee4cf466a3c59777a2fc40.tar.gz | |
Write settings to nvs when changing from the setting screen
Otherwise, settings may not actually be saved if the device crashes/
reboots unexpectedly.
Fixes #148
Diffstat (limited to 'src/tangara/lua/lua_nvs.hpp')
| -rw-r--r-- | src/tangara/lua/lua_nvs.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tangara/lua/lua_nvs.hpp b/src/tangara/lua/lua_nvs.hpp new file mode 100644 index 00000000..1275fcc7 --- /dev/null +++ b/src/tangara/lua/lua_nvs.hpp @@ -0,0 +1,15 @@ +/* + * Copyright 2024 Clayton Craft <clayton@craftyguy.net> + * + * SPDX-License-Identifier: GPL-3.0-only + */ + +#pragma once + +#include "lua.hpp" + +namespace lua { + +auto RegisterNvsModule(lua_State*) -> void; + +} // namespace lua |
