From f586fe15e2195ceb8163353de941acbb0b189557 Mon Sep 17 00:00:00 2001 From: Dmitry Frolov Date: Sat, 17 Nov 2018 16:07:32 +0700 Subject: [PATCH] Fix default pinout An error was introduced in 831e117 - "HWSPI" pinout was used by default instead of the default one described in README. Fixes #39 --- spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spi.c b/spi.c index 0e38c12..97e1481 100644 --- a/spi.c +++ b/spi.c @@ -836,7 +836,7 @@ int spi_open(int nport) /* If pinout was not set via spi_set_pinout() */ if (!spi_pinout_set) - spi_set_pinout(SPI_PINOUT_HWSPI); + spi_set_pinout(SPI_PINOUT_DEFAULT); /* Set pins direction */ output_pins = spi_pins->mosi | spi_pins->clk | spi_pins->ncs;