Merge pull request #7211 from phobos-/led-pin-defaults

Moved Default RX_SPI_LED_PIN definition to common_default_post.h
This commit is contained in:
Michael Keller 2018-12-15 18:29:51 +13:00 committed by GitHub
commit 72cc59b834
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -31,10 +31,6 @@
#include "rx/rx_spi.h"
#ifndef RX_SPI_LED_PIN
#define RX_SPI_LED_PIN NONE
#endif
PG_REGISTER_WITH_RESET_FN(rxSpiConfig_t, rxSpiConfig, PG_RX_SPI_CONFIG, 0);
void pgResetFn_rxSpiConfig(rxSpiConfig_t *rxSpiConfig)

View File

@ -249,6 +249,12 @@
#define BINDPLUG_PIN NONE
#endif
#ifdef USE_RX_SPI
#ifndef RX_SPI_LED_PIN
#define RX_SPI_LED_PIN NONE
#endif
#endif
// F4 and F7 single gyro boards
#if defined(USE_MULTI_GYRO) && !defined(GYRO_2_SPI_INSTANCE)
#define GYRO_2_SPI_INSTANCE GYRO_1_SPI_INSTANCE