some data source fixes in regards to UAT

This commit is contained in:
Matthias Wirth
2019-10-13 17:56:25 +02:00
parent be31f6e187
commit 98cb0aaf49
3 changed files with 3 additions and 11 deletions

View File

@@ -759,8 +759,8 @@ PlaneObject.prototype.updateData = function(now, last, data, init) {
this.dataSource = "mlat";
else if (data.type && data.type.substring(0,4) == "tisb")
this.dataSource = "tisb";
else if (this.dataSource == "uat")
true; // stays uat.
else if (!displayUATasADSB && this.receiver == "uat")
this.dataSource = "uat";
else if (data.lat != null && data.type == null)
this.dataSource = "adsb";
else if (data.type == "adsb_icao" || data.type == "adsb_other")