From ff87c9217577783b60ee4cf466a3c59777a2fc40 Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Fri, 27 Dec 2024 23:23:49 -0800 Subject: 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 --- src/tangara/lua/lua_nvs.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/tangara/lua/lua_nvs.hpp (limited to 'src/tangara/lua/lua_nvs.hpp') 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 + * + * SPDX-License-Identifier: GPL-3.0-only + */ + +#pragma once + +#include "lua.hpp" + +namespace lua { + +auto RegisterNvsModule(lua_State*) -> void; + +} // namespace lua -- cgit v1.2.3