Skip to content
Snippets Groups Projects
Unverified Commit cd9ee858 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-config-mode-geo-location: remove uci:set() nil check

simple-uci will now delete an option when nil is passed.
parent 4f514391
No related branches found
No related tags found
No related merge requests found
......@@ -52,11 +52,7 @@ return function(form, uci)
o.datatype = "float"
o.optional = true
function o:write(data)
if data then
uci:set("gluon-node-info", location, "altitude", data)
else
uci:delete("gluon-node-info", location, "altitude")
end
uci:set("gluon-node-info", location, "altitude", data)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment