From 0b5aac47c4b41caf8af73047da05e24d70cfccf3 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Sun, 11 Jan 2015 12:15:54 +0000 Subject: [PATCH] Change plane color if we have not seen a recent position update (previously, any type of message was enough). --- debian/changelog | 2 ++ public_html/planeObject.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 2fc301e..a3da3b3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ dump1090-mutability (1.10.3010.14mu-11) UNRELEASED; urgency=medium * Fix UTC clock display in non-UTC timezones. * Layout tweaks in the info panel. + * Change plane color if we have not seen a recent position update + (previously, any type of message was enough). -- Oliver Jowett Sun, 11 Jan 2015 11:53:48 +0000 diff --git a/public_html/planeObject.js b/public_html/planeObject.js index be17179..ea441f0 100644 --- a/public_html/planeObject.js +++ b/public_html/planeObject.js @@ -189,8 +189,8 @@ PlaneObject.prototype.updateIcon = function() { if (this.selected) col = SelectedColor; - // If we have not seen a recent update, change color - if (this.seen > 15) + // If we have not seen a recent position update, change color + if (this.seen_pos > 15) col = StaleColor; // If the squawk code is one of the international emergency codes,