You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-26 14:11:59 +01:00
fix TP TA M/S updates on frequency change
This commit is contained in:
committed by
GitHub
parent
23685277f5
commit
bacd2970d7
@@ -972,7 +972,6 @@ const updateDataElements = throttle(function(parsedData) {
|
||||
}
|
||||
updateHtmlIfChanged($('#data-regular-pi'), parsedData.txInfo.reg === true ? parsedData.txInfo.pi : ' ');
|
||||
|
||||
updateCounter++;
|
||||
if (updateCounter % 8 === 0) {
|
||||
$dataTp.html(parsedData.tp === 0 ? "<span class='opacity-half'>TP</span>" : "TP");
|
||||
$dataTa.html(parsedData.ta === 0 ? "<span class='opacity-half'>TA</span>" : "TA");
|
||||
@@ -996,7 +995,7 @@ const updateDataElements = throttle(function(parsedData) {
|
||||
let isEventListenerAdded = false;
|
||||
|
||||
function updatePanels(parsedData) {
|
||||
updateCounter++;
|
||||
updateCounter = (updateCounter % 10000) + 1; // Count to 10000 then reset back to 1
|
||||
|
||||
signalData.push(parsedData.sig);
|
||||
if (signalData.length > 8) {
|
||||
|
||||
Reference in New Issue
Block a user