beaconINtervall hotfix

This commit is contained in:
DJ2LS 2023-05-12 09:40:08 +02:00
parent 091e7383fe
commit 8b316484ae

View file

@ -255,8 +255,15 @@ window.addEventListener("DOMContentLoaded", () => {
document.getElementById("hamlib_rigctld_server_port").value = document.getElementById("hamlib_rigctld_server_port").value =
config.hamlib_rigctld_server_port; config.hamlib_rigctld_server_port;
// running this in try catch for setting default value in case of wrong beacon intervals
try{
document.getElementById("beaconInterval").value = config.beacon_interval; document.getElementById("beaconInterval").value = config.beacon_interval;
} catch(e){
console.log(e);
document.getElementById("beaconInterval").value = 300;
}
document.getElementById("scatterSwitch").value = config.enable_scatter; document.getElementById("scatterSwitch").value = config.enable_scatter;
document.getElementById("fftSwitch").value = config.enable_fft; document.getElementById("fftSwitch").value = config.enable_fft;