Fixed input validation issues

main
riley 1 year ago
parent 6d5d6cf3a2
commit afba14ef93

@ -138,7 +138,7 @@ enable = s:taboption("setup", Flag, "encryption", translate("Encryption WIP DROP
enable.default = 0 enable.default = 0
enable.rmempty = false enable.rmempty = false
o = s:taboption("setup", Value, "key", translate("Key")) o = s:taboption("setup", Value, "key", translate("Mesh Password"))
o.default = "easymesh" o.default = "easymesh"
o:depends("encryption", 1) o:depends("encryption", 1)
@ -149,17 +149,17 @@ enable_kvr.rmempty = false
mobility_domain = s:taboption("advanced", Value, "mobility_domain", translate("Mobility Domain"), translate("4-character hexadecimal ID")) mobility_domain = s:taboption("advanced", Value, "mobility_domain", translate("Mobility Domain"), translate("4-character hexadecimal ID"))
mobility_domain.default = "4f57" mobility_domain.default = "4f57"
mobility_domain.datatype = "and(hexstring,rangelength(4,4))" --mobility_domain.datatype = "and(hexstring,rangelength(4,4))"
mobility_domain:depends("kvr", 1) mobility_domain:depends("kvr", 1)
rssi_val = s:taboption("advanced", Value, "rssi_val", translate("Threshold for a good RSSI")) rssi_val = s:taboption("advanced", Value, "rssi_val", translate("Threshold for a good RSSI"))
rssi_val.default = "-60" rssi_val.default = "-60"
rssi_val.datatype = "range(-1,-120)" --rssi_val.datatype = "range(-1,-120)"
rssi_val:depends("kvr", 1) rssi_val:depends("kvr", 1)
low_rssi_val = s:taboption("advanced", Value, "low_rssi_val", translate("Threshold for a bad RSSI")) low_rssi_val = s:taboption("advanced", Value, "low_rssi_val", translate("Threshold for a bad RSSI"))
low_rssi_val.default = "-88" low_rssi_val.default = "-88"
low_rssi_val.datatype = "range(-1,-120)" --low_rssi_val.datatype = "range(-1,-120)"
low_rssi_val:depends("kvr", 1) low_rssi_val:depends("kvr", 1)

Loading…
Cancel
Save