Skip to content
Snippets Groups Projects
Commit 709c1b1b authored by Martin Weinelt's avatar Martin Weinelt
Browse files

gluon-config-mode-outdoor: fix reference mess for real this time

parent 718696e1
No related branches found
No related tags found
No related merge requests found
...@@ -13,8 +13,9 @@ return function(form, uci) ...@@ -13,8 +13,9 @@ return function(form, uci)
.. "to comply with local frequency regulations." .. "to comply with local frequency regulations."
)) ))
local outdoor_mode = uci:get_bool('gluon', 'wireless', 'outdoor')
local outdoor = section:option(Flag, 'outdoor', pkg_i18n.translate("Node will be installed outdoors")) local outdoor = section:option(Flag, 'outdoor', pkg_i18n.translate("Node will be installed outdoors"))
outdoor.default = uci:get_bool('gluon', 'wireless', 'outdoor') outdoor.default = outdoor_mode
function outdoor:write(data) function outdoor:write(data)
if data ~= outdoor_mode then if data ~= outdoor_mode then
......
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