mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-10-24 01:02:22 +00:00
Preserve MQTT settings across slot changes
This commit is contained in:
1 parent
aa8caa4ed2
commit
cb79dcd4e3
16 files changed
+2209
-1999
No files matched your search
@@ -467,9 +467,9 @@ def apply_slot_set(cfg, idx, field, val):
|
||||
try:
|
||||
p = int(val)
|
||||
except ValueError:
|
||||
return False, "Error: port must be between 1 and 65535"
|
||||
if not (1 <= p <= 65535):
|
||||
return False, "Error: port must be between 1 and 65535"
|
||||
return False, "Error: port must be 0-65535 (0 uses the URI default)"
|
||||
if not (0 <= p <= 65535):
|
||||
return False, "Error: port must be 0-65535 (0 uses the URI default)"
|
||||
slot["port"] = p
|
||||
return True, "OK"
|
||||
if field == "filter":
|
||||
|
||||
Reference in new issue
Block a user