mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Added ability to set and check board info.
This commit is contained in:
parent
011711c0c1
commit
a101a58b68
12 changed files with 330 additions and 1 deletions
|
@ -78,6 +78,7 @@
|
|||
#include "drivers/usb_msc.h"
|
||||
#endif
|
||||
|
||||
#include "fc/board_info.h"
|
||||
#include "fc/config.h"
|
||||
#include "fc/fc_init.h"
|
||||
#include "fc/fc_tasks.h"
|
||||
|
@ -241,6 +242,8 @@ void init(void)
|
|||
ensureEEPROMStructureIsValid();
|
||||
bool readSuccess = readEEPROM();
|
||||
|
||||
initBoardInformation();
|
||||
|
||||
if (!readSuccess || strncasecmp(systemConfig()->boardIdentifier, TARGET_BOARD_IDENTIFIER, sizeof(TARGET_BOARD_IDENTIFIER))) {
|
||||
resetEEPROM();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue