Visualizer #3

Merged
thomas merged 12 commits from rudi_s into main 2024-05-28 11:21:00 +02:00
Showing only changes of commit 570c379bc5 - Show all commits

View file

@ -265,7 +265,7 @@ function addHistory(packet) {
} }
// Limit to historyMaxPackets items // Limit to historyMaxPackets items
const shift = chartHistoryHz.data.labels.length == historyMaxPackets; const shift = chartHistoryHz.data.labels.length === historyMaxPackets;
if (shift) { if (shift) {
chartHistoryHz.data.labels.shift(); chartHistoryHz.data.labels.shift();
chartHistoryDb.data.labels.shift(); chartHistoryDb.data.labels.shift();
@ -276,7 +276,7 @@ function addHistory(packet) {
let i = 0; let i = 0;
for (const x of keys) { for (const x of keys) {
let data = packet[x]; let data = packet[x];
if (data == -1e38 /* "NaN" */) { if (data === -1e38 /* "NaN" */) {
data = undefined; data = undefined;
} }
if (shift) { if (shift) {