Skip to content

Commit f586fe1

Browse files
committed
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
1 parent 41ea6da commit f586fe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ int spi_open(int nport)
836836

837837
/* If pinout was not set via spi_set_pinout() */
838838
if (!spi_pinout_set)
839-
spi_set_pinout(SPI_PINOUT_HWSPI);
839+
spi_set_pinout(SPI_PINOUT_DEFAULT);
840840

841841
/* Set pins direction */
842842
output_pins = spi_pins->mosi | spi_pins->clk | spi_pins->ncs;

0 commit comments

Comments
 (0)