mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Fix for flashing incorrect target, and wrong defaults persisting in flash.
This commit is contained in:
parent
56f0083237
commit
7ccdd5a90d
2 changed files with 4 additions and 0 deletions
|
@ -837,6 +837,9 @@ void createDefaultConfig(master_t *config)
|
|||
|
||||
resetStatusLedConfig(&config->statusLedConfig);
|
||||
|
||||
/* merely to force a reset if the person inadvertently flashes the wrong target */
|
||||
strncpy(config->boardIdentifier, TARGET_BOARD_IDENTIFIER, MIN(sizeof(TARGET_BOARD_IDENTIFIER), sizeof(config->boardIdentifier)));
|
||||
|
||||
#if defined(TARGET_CONFIG)
|
||||
targetConfiguration(config);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue