1
0
Fork 0
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:
mikeller 2018-05-27 15:25:35 +12:00
parent 011711c0c1
commit a101a58b68
12 changed files with 330 additions and 1 deletions

View file

@ -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();