summaryrefslogtreecommitdiff
path: root/luals-stubs
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 /luals-stubs
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 'luals-stubs')
-rw-r--r--luals-stubs/nvs.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/luals-stubs/nvs.lua b/luals-stubs/nvs.lua
new file mode 100644
index 00000000..9e6eb8ee
--- /dev/null
+++ b/luals-stubs/nvs.lua
@@ -0,0 +1,9 @@
+--- @meta
+
+--- @class nvs
+local nvs = {}
+
+--- Saves current nvs
+function nvs.write() end
+
+return nvs