From 9585cd40f1a9d805f455b61319d742b88d608223 Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Fri, 12 May 2023 22:14:07 +0200 Subject: [PATCH] pushed temporary hotfix for disabled waterfall --- gui/preload-main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gui/preload-main.js b/gui/preload-main.js index 163d5af6..c08984b2 100644 --- a/gui/preload-main.js +++ b/gui/preload-main.js @@ -1793,8 +1793,14 @@ var lastHeard = ""; ipcRenderer.on("action-update-tnc-state", (event, arg) => { // update FFT if (typeof arg.fft !== "undefined") { + // FIXME: WE need to fix this when disabled waterfall chart + try{ + var array = JSON.parse("[" + arg.fft + "]"); spectrum.addData(array[0]); + } catch (e){ + console.log(e) + } } if (typeof arg.mycallsign !== "undefined") {