From 3c37242fda3cc2505e9cc6b70792fd6ac0138a43 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Tue, 6 Jan 2015 08:49:49 -0800 Subject: [PATCH] [Telemetry] Don't format non-numeric values Don't try to format non-numeric values; rather, just echo them back directly. This is to allow simple printing of strings when received on a telemetry subscription. Performed in the context of WTD-644 (since the WARP Server returns many such strings.) --- platform/telemetry/src/TelemetryFormatter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/telemetry/src/TelemetryFormatter.js b/platform/telemetry/src/TelemetryFormatter.js index 85ec7ff29a..c8754f6626 100644 --- a/platform/telemetry/src/TelemetryFormatter.js +++ b/platform/telemetry/src/TelemetryFormatter.js @@ -22,7 +22,7 @@ define( } function formatRangeValue(v, key) { - return isNaN(v) ? "" : v.toFixed(3); + return isNaN(v) ? v : v.toFixed(3); } return {