Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cpu/nrf5x_common/periph/spi_nrf52_nrf9160.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ int spi_init_with_gpio_mode(spi_t bus, const spi_gpio_mode_t* mode)
assert(bus < SPI_NUMOF);

if (gpio_is_valid(spi_config[bus].mosi)) {
gpio_init(spi_config[bus].miso, mode->mosi);
gpio_init(spi_config[bus].mosi, mode->mosi);
}

if (gpio_is_valid(spi_config[bus].miso)) {
gpio_init(spi_config[bus].mosi, mode->miso);
gpio_init(spi_config[bus].miso, mode->miso);
}

if (gpio_is_valid(spi_config[bus].sclk)) {
Expand Down