[luci] selecting a three-phase setup should disable sensor #2 and #3

This commit is contained in:
Bart Van Der Meerssche 2011-04-21 22:50:51 +02:00
parent 88dba6e8da
commit 5d2fcbace3
1 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,9 @@ function phase:validate(value, section)
uci:set_list("flukso", "1", "port", { "1", "2", "3" })
uci:delete ("flukso", "2", "port")
uci:delete ("flukso", "3", "port")
uci:set("flukso", "2", "enable", "0")
uci:set("flukso", "3", "enable", "0")
end
uci:commit("flukso")