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:
parent
c05af76436
commit
5d55a3ac13
10 changed files with 99 additions and 105 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue