1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-12 13:33:06 +01:00

only recreate value string in boatData if changed

This commit is contained in:
wellenvogel
2021-11-25 17:02:42 +01:00
parent aae16531ff
commit 5b39145e4f
3 changed files with 8 additions and 2 deletions

View File

@@ -1088,7 +1088,7 @@ function updateDashboard(data) {
let names={};
for (let n in data) {
let current=parseBoatDataLine(data[n]);
if (! current.name) return;
if (! current.name) continue;
names[current.name]=true;
let de = document.getElementById('data_' + current.name);
if (! de && frame){
@@ -1127,6 +1127,7 @@ function updateDashboard(data) {
src.textContent=sourceName(current.source);
}
}
console.log("update");
forEl('.dashValue',function(el){
let id=el.getAttribute('id');
if (id){