From 6f7cf8dc4ce05efd47641fc4db8abe89541d7d18 Mon Sep 17 00:00:00 2001 From: Michael Lyle Date: Sun, 17 Jul 2016 19:54:11 -0700 Subject: [PATCH] vtxconfig: unconditionally init VTXSettings Improves the upgrade user experience. --- flight/Modules/VTXConfig/VTXConfig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flight/Modules/VTXConfig/VTXConfig.c b/flight/Modules/VTXConfig/VTXConfig.c index 586429bcc0..ae9dc9ef10 100644 --- a/flight/Modules/VTXConfig/VTXConfig.c +++ b/flight/Modules/VTXConfig/VTXConfig.c @@ -187,9 +187,10 @@ int32_t VTXConfigInitialize(void) module_enabled = false; } + VTXSettingsInitialize(); + if (module_enabled) { VTXInfoInitialize(); - VTXSettingsInitialize(); VTXSettingsConnectCallbackCtx(UAVObjCbSetFlag, &settings_updated); } @@ -301,8 +302,7 @@ static void vtxConfigTask(void *parameters) } } } - } - else { + } else { // Cycle through different baud rates. The spec says 4.8kbps, but it can deviate if (baud_rate < TBS_MAX_BAUD) { baud_rate += 50;