1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-22 07:45:29 +03:00

Target custom config update

"diff" and "diff all" working now also with custom configuration
This commit is contained in:
Michael Jakob 2016-08-13 23:03:06 +02:00
parent c05af76436
commit 5d55a3ac13
10 changed files with 99 additions and 105 deletions

View file

@ -90,7 +90,7 @@
#endif
void useRcControlsConfig(modeActivationCondition_t *modeActivationConditions, escAndServoConfig_t *escAndServoConfigToUse, pidProfile_t *pidProfileToUse);
void targetConfiguration(void);
void targetConfiguration(master_t *config);
#if !defined(FLASH_SIZE)
#error "Flash size not defined for target. (specify in KB)"
@ -689,12 +689,7 @@ void createDefaultConfig(master_t *config)
#endif
#if defined(TARGET_CONFIG)
// Don't look at target specific config settings when getting default
// values for a CLI diff. This is suboptimal, but it doesn't break the
// public API
if (config == &masterConfig) {
targetConfiguration();
}
targetConfiguration(config);
#endif