mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 08:45:36 +03:00
FIX: Several build issues following configuration changes (#12389)
* FIX: Several build issues following configuration changes 1. RX_SPI pins undefined 2. SDCARD enabled but no utilisation (i.e. no blackbox selected). * Improved readability (readiness for "black" macro magic) * Adding Makefile rule to enable CI targets to include Configured targets
This commit is contained in:
parent
9dc9c51d3e
commit
166ff9c9b3
7 changed files with 29 additions and 37 deletions
|
@ -821,17 +821,15 @@ void init(void)
|
|||
flashfsInit();
|
||||
#endif
|
||||
|
||||
#ifdef USE_BLACKBOX
|
||||
#ifdef USE_SDCARD
|
||||
if (blackboxConfig()->device == BLACKBOX_DEVICE_SDCARD) {
|
||||
if (sdcardConfig()->mode) {
|
||||
if (!(initFlags & SD_INIT_ATTEMPTED)) {
|
||||
sdCardAndFSInit();
|
||||
initFlags |= SD_INIT_ATTEMPTED;
|
||||
}
|
||||
if (sdcardConfig()->mode) {
|
||||
if (!(initFlags & SD_INIT_ATTEMPTED)) {
|
||||
sdCardAndFSInit();
|
||||
initFlags |= SD_INIT_ATTEMPTED;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifdef USE_BLACKBOX
|
||||
blackboxInit();
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue