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:
commit
e59b48cf6b
1 changed files with 5 additions and 3 deletions
|
@ -787,9 +787,6 @@ void createDefaultConfig(master_t *config)
|
||||||
resetStatusLedConfig(&config->statusLedConfig);
|
resetStatusLedConfig(&config->statusLedConfig);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(TARGET_CONFIG)
|
|
||||||
targetConfiguration(config);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -799,6 +796,11 @@ void resetConfigs(void)
|
||||||
createDefaultConfig(&masterConfig);
|
createDefaultConfig(&masterConfig);
|
||||||
#endif
|
#endif
|
||||||
pgResetAll(MAX_PROFILE_COUNT);
|
pgResetAll(MAX_PROFILE_COUNT);
|
||||||
|
|
||||||
|
#if defined(TARGET_CONFIG)
|
||||||
|
targetConfiguration();
|
||||||
|
#endif
|
||||||
|
|
||||||
pgActivateProfile(0);
|
pgActivateProfile(0);
|
||||||
|
|
||||||
setPidProfile(0);
|
setPidProfile(0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue