1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Merge pull request #2734 from mikeller/fixed_target_configuration

Made 'resetConfigs()' take 'targetConfiguration()' into account.
This commit is contained in:
Michael Keller 2017-03-24 13:41:19 +13:00 committed by GitHub
commit e59b48cf6b

View file

@ -787,9 +787,6 @@ void createDefaultConfig(master_t *config)
resetStatusLedConfig(&config->statusLedConfig);
#endif
#if defined(TARGET_CONFIG)
targetConfiguration(config);
#endif
}
#endif
@ -799,6 +796,11 @@ void resetConfigs(void)
createDefaultConfig(&masterConfig);
#endif
pgResetAll(MAX_PROFILE_COUNT);
#if defined(TARGET_CONFIG)
targetConfiguration();
#endif
pgActivateProfile(0);
setPidProfile(0);