summaryrefslogtreecommitdiff
path: root/src/tangara/lua/bridge.cpp
diff options
context:
space:
mode:
authorClayton Craft <clayton@craftyguy.net>2024-12-27 23:23:49 -0800
committercooljqln <cooljqln@noreply.codeberg.org>2024-12-29 23:53:42 +0000
commitff87c9217577783b60ee4cf466a3c59777a2fc40 (patch)
tree458a5033f8052b8100d349b185437e8dd02deb24 /src/tangara/lua/bridge.cpp
parent92908533c48a9bc9b84e66a65c09f590858a6c45 (diff)
downloadtangara-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/bridge.cpp')
-rw-r--r--src/tangara/lua/bridge.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tangara/lua/bridge.cpp b/src/tangara/lua/bridge.cpp
index 1c757a22..9521f265 100644
--- a/src/tangara/lua/bridge.cpp
+++ b/src/tangara/lua/bridge.cpp
@@ -25,6 +25,7 @@
#include "lua/lua_database.hpp"
#include "lua/lua_filesystem.hpp"
#include "lua/lua_font.hpp"
+#include "lua/lua_nvs.hpp"
#include "lua/lua_queue.hpp"
#include "lua/lua_screen.hpp"
#include "lua/lua_testing.hpp"
@@ -84,6 +85,7 @@ auto Bridge::installBaseModules(lua_State* L) -> void {
RegisterVersionModule(L);
RegisterThemeModule(L);
RegisterScreenModule(L);
+ RegisterNvsModule(L);
}
auto Bridge::installLvgl(lua_State* L) -> void {