From 8b316484ae85b2cc22c5625626a658fd1d5c7770 Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Fri, 12 May 2023 09:40:08 +0200 Subject: [PATCH] beaconINtervall hotfix --- gui/preload-main.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gui/preload-main.js b/gui/preload-main.js index a1216cba..2f110980 100644 --- a/gui/preload-main.js +++ b/gui/preload-main.js @@ -255,8 +255,15 @@ window.addEventListener("DOMContentLoaded", () => { document.getElementById("hamlib_rigctld_server_port").value = 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; + } catch(e){ + console.log(e); + document.getElementById("beaconInterval").value = 300; + + } document.getElementById("scatterSwitch").value = config.enable_scatter; document.getElementById("fftSwitch").value = config.enable_fft;