Skip to content

Commit

Permalink
Fix default pinout
Browse files Browse the repository at this point in the history
An error was introduced in 831e117 - "HWSPI" pinout was used by default
instead of the default one described in README. Fixes #39
  • Loading branch information
lorf committed Nov 17, 2018
1 parent 41ea6da commit f586fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f586fe1

Please sign in to comment.