fix a spi bulk read bug

remotes/github/master
Ondřej Hruška 7 years ago
parent b9f82c8077
commit 218d26fb7b
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 2
      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); uint16_t mask = pinmask_spread((uint16_t) (1 << slave_num), priv->ssn_pins);
priv->ssn_port->BRR = mask; 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; priv->ssn_port->BSRR = mask;

Loading…
Cancel
Save