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

Touch ups

- Renamed some variables
- Video system constants are now defined in vcd.h
- Removed video system default initializer from max7456.c
This commit is contained in:
jflyper 2016-11-17 02:48:01 +09:00
parent cfa3852495
commit 11128daaa6
4 changed files with 26 additions and 19 deletions

View file

@ -487,7 +487,7 @@ void resetServoMixerConfig(servoMixerConfig_t *servoMixerConfig)
#ifdef USE_MAX7456
void resetMax7456Config(vcdProfile_t *pVcdProfile)
{
pVcdProfile->video_system = 0; // AUTO see drivers/max7456.h
pVcdProfile->video_system = VIDEO_SYSTEM_AUTO;
pVcdProfile->h_offset = 0;
pVcdProfile->v_offset = 0;
}
@ -541,6 +541,10 @@ void createDefaultConfig(master_t *config)
intFeatureSet(DEFAULT_FEATURES, featuresPtr);
#endif
#ifdef USE_MAX7456
resetMax7456Config(&config->vcdProfile);
#endif
#ifdef OSD
intFeatureSet(FEATURE_OSD, featuresPtr);
osdResetConfig(&config->osdProfile);