Fix broken cursor use. (#258)

This commit is contained in:
Tim Wilkinson 2022-03-04 18:57:16 -08:00 committed by GitHub
parent 46a4420a3d
commit d3b67ddbb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -245,8 +245,8 @@ function msg(m)
end
-- uci cursor
local cursora = uci:cursor()
local cursorb = uci:cursor("/etc/config.mesh")
local cursora = uci.cursor()
local cursorb = uci.cursor("/etc/config.mesh")
function cursor_set(a, b, c, d)
if not cursora:get(a, b) and b:match("@(.+)%[0%]") then
cursora:add(a, b:match("@(.+)%[0%]"))