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

correct field display in unmapped

This commit is contained in:
wellenvogel
2021-11-26 00:27:13 +01:00
parent 284be741f5
commit 172f8393d9

View File

@@ -636,8 +636,15 @@ function convertUnassigned(value){
let cname=getXdrCategoryName(cid);
if (! cname) return rt;
let fieldName="";
let idx=0;
(category.fields || []).forEach(function(f){
if (parseInt(f.v) == field) fieldName=f.l;
if (f.v === undefined){
if (idx == field) fieldName=f.l;
}
else{
if (parseInt(f.v) == field) fieldName=f.l;
}
idx++;
});
let selectorName=selector+"";
(category.selector ||[]).forEach(function(s){