pushed temporary hotfix for disabled waterfall

This commit is contained in:
DJ2LS 2023-05-12 22:14:07 +02:00
parent 93f92ac8b8
commit 9585cd40f1

View file

@ -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") {