From 8e4cc30b3f59a607342201171181babd2705ee64 Mon Sep 17 00:00:00 2001 From: nujw Date: Fri, 12 Feb 2021 14:41:37 +1300 Subject: [PATCH] Display only actual fixes. If not a fix, then last fix --- apps/speedalt/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/speedalt/app.js b/apps/speedalt/app.js index ae840fd47..1b25b1b7d 100644 --- a/apps/speedalt/app.js +++ b/apps/speedalt/app.js @@ -3,7 +3,7 @@ Speed and Altitude [speedalt] Mike Bennett mike[at]kereru.com 1.16 : Use new GPS settings module */ -var v = '1.17'; +var v = '1.18'; var buf = Graphics.createArrayBuffer(240,160,2,{msb:true}); // Load fonts @@ -210,8 +210,8 @@ function onGPS(fix) { var di = '---'; var age = '---'; - if (fix.fix) { - lf = fix; + if (fix.fix) lf = fix; + if (lf.fix) { // Speed if ( cfg.spd == 0 ) {