option to ignore radio device

This commit is contained in:
DJ2LS 2023-03-04 10:19:29 +01:00
parent 36d9777dd8
commit d0432e6a30
2 changed files with 11 additions and 2 deletions

View file

@ -657,8 +657,16 @@ window.addEventListener("DOMContentLoaded", () => {
hamlib_params = function () {
var paramList = [];
var hamlib_deviceid = document.getElementById("hamlib_deviceid").value;
paramList = paramList.concat("--model=" + hamlib_deviceid);
// hamlib stopbits setting
if (document.getElementById("hamlib_deviceid").value !== "-- ignore --") {
var hamlib_deviceid = document.getElementById("hamlib_deviceid").value;
paramList = paramList.concat("--model=" + hamlib_deviceid);
}
// hamlib deviceport setting
if (document.getElementById("hamlib_deviceport").value !== "ignore") {

View file

@ -1964,6 +1964,7 @@
style="width: 7rem"
/>
<datalist id="datalistOptions">
<option selected value="-- ignore --">-- ignore --</option>
<option value="2028">Kenwood TS480</option>
<option value="1">Hamlib Dummy</option>
<option value="2">Hamlib NET rigctl</option>