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
This commit is contained in:
Clayton Craft
2024-12-29 23:53:42 +00:00
committed by cooljqln
parent 92908533c4
commit ff87c92175
5 changed files with 69 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
--- @meta
--- @class nvs
local nvs = {}
--- Saves current nvs
function nvs.write() end
return nvs