diff --git a/units/spi/_spi_api.c b/units/spi/_spi_api.c index 4da939c..06386a4 100644 --- a/units/spi/_spi_api.c +++ b/units/spi/_spi_api.c @@ -95,7 +95,7 @@ error_t UU_SPI_Write(Unit *unit, uint8_t slave_num, uint16_t mask = pinmask_spread((uint16_t) (1 << slave_num), priv->ssn_pins); priv->ssn_port->BRR = mask; { - TRY(xfer_do(priv, request, response, req_len, resp_len, resp_skip)); + TRY(xfer_do(priv, request, response, req_len, resp_skip, resp_len)); } priv->ssn_port->BSRR = mask;