1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Add displayPortProfile

This commit is contained in:
jflyper 2017-01-16 19:37:40 +09:00
parent 7acaf05b15
commit d33977a506
9 changed files with 54 additions and 12 deletions

View file

@ -485,6 +485,12 @@ void resetMax7456Config(vcdProfile_t *pVcdProfile)
}
#endif
void resetDisplayPortProfile(displayPortProfile_t *pDisplayPortProfile)
{
pDisplayPortProfile->colAdjust = 0;
pDisplayPortProfile->rowAdjust = 0;
}
void resetStatusLedConfig(statusLedConfig_t *statusLedConfig)
{
for (int i = 0; i < LED_NUMBER; i++) {
@ -573,6 +579,13 @@ void createDefaultConfig(master_t *config)
intFeatureSet(DEFAULT_FEATURES, featuresPtr);
#endif
#ifdef USE_MSP_DISPLAYPORT
resetDisplayPortProfile(&config->displayPortProfileMsp);
#endif
#ifdef USE_MAX7456
resetDisplayPortProfile(&config->displayPortProfileMax7456);
#endif
#ifdef USE_MAX7456
resetMax7456Config(&config->vcdProfile);
#endif