1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Debug - Initialise debug pins on startup, not as part of the dshot

bitbang code.
This commit is contained in:
Dominic Clifton 2021-08-18 15:26:24 +02:00
parent 04572eed13
commit 49869fa2bb
4 changed files with 17 additions and 25 deletions

View file

@ -29,6 +29,7 @@
#include "build/build_config.h"
#include "build/debug.h"
#include "build/debug_pin.h"
#include "cms/cms.h"
#include "cms/cms_types.h"
@ -413,6 +414,10 @@ void init(void)
systemState |= SYSTEM_STATE_CONFIG_LOADED;
#ifdef USE_DEBUG_PIN
dbgPinInit();
#endif
#ifdef USE_SDCARD
// Ensure the SD card is initialised before the USB MSC starts to avoid a race condition
#if !defined(CONFIG_IN_SDCARD) && defined(STM32H7) && defined(USE_SDCARD_SDIO) // H7 only for now, likely should be applied to F4/F7 too