Skip to content

Commit 9a83819

Browse files
committed
ports: analog: Update common-hal to align pinsToSpi function signature
Signed-off-by: Brandon-Hurst <brandon.hurst97@gmail.com>
1 parent 154a7eb commit 9a83819

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • ports/analog/common-hal/busio

ports/analog/common-hal/busio/SPI.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void common_hal_busio_spi_construct(busio_spi_obj_t *self,
6363
common_hal_busio_spi_mark_deinit(self);
6464

6565
// Assign SPI ID based on pins
66-
int spi_id = pinsToSpi(mosi, miso, sck);
66+
int spi_id = pinsToSpi(sck, mosi, miso);
6767
if (spi_id == -1) {
6868
return;
6969
} else {

0 commit comments

Comments
 (0)