correctly show source names

This commit is contained in:
andreas 2024-03-03 18:37:20 +01:00
parent b327d91976
commit e10432dae4
1 changed files with 2 additions and 0 deletions

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;
}