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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user