Skip to content

Commit

Permalink
If we've declared alternate pins for an SPI port, that SPI port clear…
Browse files Browse the repository at this point in the history
…ly exists. (thanks, @stevstrong).
  • Loading branch information
coddingtonbear committed Aug 23, 2018
1 parent 0dc153e commit a0408b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion STM32F1/libraries/SPI/src/SPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ static const spi_pins board_spi_pins[] __FLASH__ = {
};

static const spi_pins board_alt_spi_pins[] __FLASH__ = {
#if BOARD_NR_SPI >= 1 && defined(BOARD_SPI1_ALT_MOSI_PIN)
#if defined(BOARD_SPI1_ALT_MOSI_PIN)
{BOARD_SPI1_ALT_NSS_PIN,
BOARD_SPI1_ALT_SCK_PIN,
BOARD_SPI1_ALT_MISO_PIN,
Expand Down

0 comments on commit a0408b1

Please sign in to comment.