From 968905a5138c19db63ce4bc54d39429479f7cce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Garci=CC=81a=20Hierro?= Date: Fri, 29 Sep 2017 20:25:25 +0100 Subject: [PATCH] Load SENSOR_CONFIG before showing OSD UI SENSOR_CONFIG is used for OSD_AIR_SPEED detection --- tabs/osd.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tabs/osd.js b/tabs/osd.js index 3408c1c2..5b20577f 100644 --- a/tabs/osd.js +++ b/tabs/osd.js @@ -1204,7 +1204,11 @@ TABS.osd.initialize = function (callback) { } }); - GUI.content_ready(callback); + // Update SENSOR_CONFIG, used to detect + // OSD_AIR_SPEED + mspHelper.loadSensorConfig(function () { + GUI.content_ready(callback); + }); }); };