diff --git a/web/js/main.js b/web/js/main.js index 8e93d70..de3b2f4 100644 --- a/web/js/main.js +++ b/web/js/main.js @@ -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 ? "TP" : "TP"); $dataTa.html(parsedData.ta === 0 ? "TA" : "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) {