From 0e2b99466af663d7a28f4d6a865847c194735c4d Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sat, 21 Sep 2019 17:54:38 +0200 Subject: [PATCH] and more mlat detection stuff --- html/planeObject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/planeObject.js b/html/planeObject.js index 940d77b..6204a17 100644 --- a/html/planeObject.js +++ b/html/planeObject.js @@ -694,7 +694,7 @@ PlaneObject.prototype.updateData = function(receiver_timestamp, data, init) { if (data.mlat != null && data.mlat.indexOf("lat") >= 0) { this.dataSource = "mlat"; } else if (this.dataSource != "uat") { - if (this.position && data.type == null) + if (data.lat != null && data.type == null) this.dataSource = "adsb"; else if (data.type && data.type.substring(0,4) == "tisb") this.dataSource = "tisb";