1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Add MSC for F7 (#5629)

* Add MSC for F7

* Fix compilation error.
This commit is contained in:
Chris 2018-04-06 02:53:26 +02:00 committed by Michael Keller
parent 75bafb7b71
commit 9d5fa7311e
12 changed files with 306 additions and 9 deletions

View file

@ -458,7 +458,7 @@ void init(void)
/* MSC mode will start after init, but will not allow scheduler to run,
* so there is no bottleneck in reading and writing data */
mscInit();
if (*((uint32_t *)0x2001FFF0) == 0xDDDD1010 || mscCheckButton()) {
if (mscCheckBoot() || mscCheckButton()) {
if (mscStart() == 0) {
mscWaitForButton();
} else {