diff --git a/gui/main.js b/gui/main.js index 6159cf40..21aa6b42 100644 --- a/gui/main.js +++ b/gui/main.js @@ -62,15 +62,12 @@ const configDefaultSettings = "hamlib_pttprotocol": "ignore",\ "hamlib_ptt_port": "ignore",\ "hamlib_dcd": "ignore",\ - "hamlib_rigctld_port": "ignore",\ - "hamlib_rigctld_ip": "ignore",\ - "hamlib_rigctld_path": "ignore",\ - "hamlib_rigctld_server_port": "ignore",\ "hamlbib_serialspeed_ptt": "9600",\ "hamlib_rigctld_port" : "4532",\ "hamlib_rigctld_ip" : "127.0.0.1",\ "hamlib_rigctld_path" : "",\ "hamlib_rigctld_server_port" : "4532",\ + "hamlib_rigctld_custom_args": "",\ "spectrum": "waterfall",\ "tnclocation": "localhost",\ "enable_scatter" : "False",\ diff --git a/gui/preload-main.js b/gui/preload-main.js index cfbf0e07..0a6aa526 100644 --- a/gui/preload-main.js +++ b/gui/preload-main.js @@ -57,6 +57,7 @@ const hamlib_elements = [ "hamlib_rigctld_ip", "hamlib_rigctld_path", "hamlib_rigctld_server_port", + "hamlib_rigctld_custom_args", ]; // SET dbfs LEVEL GLOBAL @@ -646,6 +647,12 @@ window.addEventListener("DOMContentLoaded", () => { "hamlib_rigctld_server_port" ).value; paramList = paramList.concat("-t", hamlib_rigctld_server_port); + + //Custom rigctld arguments to pass to rigctld + var hamlib_rigctld_custom_args = document.getElementById( + "hamlib_rigctld_custom_args" + ).value; + paramList = paramList.concat(hamlib_rigctld_custom_args); document.getElementById("hamlib_rigctld_command").value = paramList.join(" "); // join removes the commas diff --git a/gui/src/index.html b/gui/src/index.html index bcd405b0..405c2deb 100644 --- a/gui/src/index.html +++ b/gui/src/index.html @@ -2182,6 +2182,19 @@ +