mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
pushed temporary hotfix for disabled waterfall
This commit is contained in:
parent
93f92ac8b8
commit
9585cd40f1
1 changed files with 6 additions and 0 deletions
|
@ -1793,8 +1793,14 @@ var lastHeard = "";
|
||||||
ipcRenderer.on("action-update-tnc-state", (event, arg) => {
|
ipcRenderer.on("action-update-tnc-state", (event, arg) => {
|
||||||
// update FFT
|
// update FFT
|
||||||
if (typeof arg.fft !== "undefined") {
|
if (typeof arg.fft !== "undefined") {
|
||||||
|
// FIXME: WE need to fix this when disabled waterfall chart
|
||||||
|
try{
|
||||||
|
|
||||||
var array = JSON.parse("[" + arg.fft + "]");
|
var array = JSON.parse("[" + arg.fft + "]");
|
||||||
spectrum.addData(array[0]);
|
spectrum.addData(array[0]);
|
||||||
|
} catch (e){
|
||||||
|
console.log(e)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof arg.mycallsign !== "undefined") {
|
if (typeof arg.mycallsign !== "undefined") {
|
||||||
|
|
Loading…
Reference in a new issue