Skip to content

Commit

Permalink
[gen3] SPI hal minor
Browse files Browse the repository at this point in the history
  • Loading branch information
XuGuohui committed May 6, 2024
1 parent b5c5312 commit 96cd543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hal/src/nRF52840/spi_hal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ static void spiSlaveEventHandler(nrfx_spis_evt_t const * p_event, void * p_conte
return;
}

spiMap[spi].transfer_length = p_event->rx_amount;
spiMap[spi].transfer_length = std::max(p_event->rx_amount, p_event->tx_amount);
spiMap[spi].transmitting = false;

// We should notify application, despite of how many data we received.
Expand Down

0 comments on commit 96cd543

Please sign in to comment.