From 7f04f367468bd4783417f498e763c548cacf5a6f Mon Sep 17 00:00:00 2001 From: mikeller Date: Sun, 10 Feb 2019 19:12:26 +1300 Subject: [PATCH] Fixed incorrect temperature symbols. --- src/js/tabs/osd.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/js/tabs/osd.js b/src/js/tabs/osd.js index 71d03b09..07e0cdad 100755 --- a/src/js/tabs/osd.js +++ b/src/js/tabs/osd.js @@ -37,6 +37,7 @@ SYM.HEADING_N = 0x18; SYM.HEADING_S = 0x19; SYM.HEADING_E = 0x1A; SYM.HEADING_W = 0x1B; +SYM.TEMP_F = 0x0D; SYM.TEMP_C = 0x0E; SYM.STICK_OVERLAY_SPRITE_HIGH = 0x08; SYM.STICK_OVERLAY_SPRITE_MID = 0x09; @@ -292,10 +293,10 @@ OSD.generateTemperaturePreview = function (osd_data, temperature) { case 0: temperature *= (9.0 / 5.0); temperature += 32.0; - preview += Math.floor(temperature) + 'F' + preview += Math.floor(temperature) + FONT.symbol(SYM.TEMP_F); break; case 1: - preview += temperature + 'C' + preview += temperature + FONT.symbol(SYM.TEMP_C); break; } return preview;