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

This commit is contained in:
Martin Weinelt 2019-06-10 11:20:53 +02:00
parent 718696e11d
commit 709c1b1b91

View File

@ -13,8 +13,9 @@ return function(form, uci)
.. "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"))
outdoor.default = uci:get_bool('gluon', 'wireless', 'outdoor')
outdoor.default = outdoor_mode
function outdoor:write(data)
if data ~= outdoor_mode then