Update app.js

pull/668/head
nujw 2021-02-05 11:14:34 +13:00 committed by GitHub
parent 40346cfb6f
commit 2e34b4f030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -216,7 +216,7 @@ function onGPS(fix) {
var di = '---'; var di = '---';
var age = '---'; var age = '---';
// if (lf.fix == 1 ) { if (lf.fix == 1 ) {
// Speed // Speed
if ( settings.spd == 0 ) { if ( settings.spd == 0 ) {
m = require("locale").speed(lf.speed).match(/([0-9,\.]+)(.*)/); // regex splits numbers from units m = require("locale").speed(lf.speed).match(/([0-9,\.]+)(.*)/); // regex splits numbers from units
@ -244,7 +244,7 @@ function onGPS(fix) {
// Age of last fix (secs) // Age of last fix (secs)
age = Math.max(0,Math.round(getTime())-(lf.time.getTime()/1000)); age = Math.max(0,Math.round(getTime())-(lf.time.getTime()/1000));
if ( age > 90 ) age = '>90'; if ( age > 90 ) age = '>90';
// } }
if ( settings.modeA ) { if ( settings.modeA ) {
if ( showMax ) { if ( showMax ) {