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

correctly show source names

This commit is contained in:
andreas
2024-03-03 18:37:20 +01:00
parent b327d91976
commit e10432dae4

View File

@@ -1506,7 +1506,9 @@ function createDashboard() {
frame.innerHTML = '';
}
function sourceName(v){
if (v == 0) return "N2K";
for (let n in channelList){
if (v == channelList[n].id) return n;
if (v >= channelList[n].id && v <= channelList[n].max){
return n;
}