From 71aea36e6974261d37665d4ee5ec95b349f4819c Mon Sep 17 00:00:00 2001 From: Jim Jacobsen Date: Wed, 16 Nov 2016 20:42:09 +0000 Subject: [PATCH 1/2] Added 'm' specifier on unit for gps --- web/plates/js/status.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/plates/js/status.js b/web/plates/js/status.js index 2b30f104..e4d93656 100644 --- a/web/plates/js/status.js +++ b/web/plates/js/status.js @@ -54,7 +54,7 @@ function StatusCtrl($rootScope, $scope, $state, $http, $interval) { $scope.GPS_satellites_tracked = status.GPS_satellites_tracked; $scope.GPS_satellites_seen = status.GPS_satellites_seen; $scope.GPS_solution = status.GPS_solution; - $scope.GPS_position_accuracy = String(status.GPS_solution ? ", " + status.GPS_position_accuracy.toFixed(1) : ""); + $scope.GPS_position_accuracy = String(status.GPS_solution ? ", " + status.GPS_position_accuracy.toFixed(1) : " m"); $scope.RY835AI_connected = status.RY835AI_connected; $scope.UAT_METAR_total = status.UAT_METAR_total; $scope.UAT_TAF_total = status.UAT_TAF_total; From 9f195fa06793d8e3dce95b7be59e7b2f7dfbde5f Mon Sep 17 00:00:00 2001 From: Jim Jacobsen Date: Wed, 16 Nov 2016 20:48:03 +0000 Subject: [PATCH 2/2] Was a bug, fixed now --- web/plates/js/status.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/plates/js/status.js b/web/plates/js/status.js index e4d93656..debb3ce8 100644 --- a/web/plates/js/status.js +++ b/web/plates/js/status.js @@ -54,7 +54,7 @@ function StatusCtrl($rootScope, $scope, $state, $http, $interval) { $scope.GPS_satellites_tracked = status.GPS_satellites_tracked; $scope.GPS_satellites_seen = status.GPS_satellites_seen; $scope.GPS_solution = status.GPS_solution; - $scope.GPS_position_accuracy = String(status.GPS_solution ? ", " + status.GPS_position_accuracy.toFixed(1) : " m"); + $scope.GPS_position_accuracy = String(status.GPS_solution ? ", " + status.GPS_position_accuracy.toFixed(1) + " m" : " "); $scope.RY835AI_connected = status.RY835AI_connected; $scope.UAT_METAR_total = status.UAT_METAR_total; $scope.UAT_TAF_total = status.UAT_TAF_total;