mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Slow heard stations updates
This commit is contained in:
parent
475550d84d
commit
4ac088f56a
1 changed files with 11 additions and 0 deletions
|
@ -1526,6 +1526,8 @@ ipcRenderer.on('action-update-transmission-status', (event, arg) => {
|
|||
|
||||
});
|
||||
|
||||
var slowRollTable=4;
|
||||
|
||||
ipcRenderer.on('action-update-tnc-state', (event, arg) => {
|
||||
// update FFT
|
||||
if (typeof(arg.fft) !== 'undefined') {
|
||||
|
@ -1900,6 +1902,15 @@ var speedChartOptions = {
|
|||
document.getElementById("total_bytes").textContent = total_bytes;
|
||||
|
||||
|
||||
//Ensure heard station table is last so we can return if we don't want to update it
|
||||
//Only update heard stations every 5 iterations
|
||||
//Allows for single click event to work more reliabily to populate dxcall textbox
|
||||
//Should also save some CPU
|
||||
slowRollTable++;
|
||||
if (slowRollTable!=5)
|
||||
return;
|
||||
slowRollTable=0;
|
||||
|
||||
// UPDATE HEARD STATIONS
|
||||
var tbl = document.getElementById("heardstations");
|
||||
document.getElementById("heardstations").innerHTML = '';
|
||||
|
|
Loading…
Reference in a new issue