Skip to content

Commit

Permalink
Merge pull request #1132 from mlyle/mpl-dumbaudio
Browse files Browse the repository at this point in the history
vtxconfig: unconditionally init VTXSettings
  • Loading branch information
tracernz authored Jul 20, 2016
2 parents 65a6d5b + 6f7cf8d commit d6550c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flight/Modules/VTXConfig/VTXConfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,10 @@ int32_t VTXConfigInitialize(void)
module_enabled = false;
}

VTXSettingsInitialize();

if (module_enabled) {
VTXInfoInitialize();
VTXSettingsInitialize();
VTXSettingsConnectCallbackCtx(UAVObjCbSetFlag, &settings_updated);
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d6550c8

Please sign in to comment.