Skip to content

Commit 7df2144

Browse files
committed
- fix, a line from the SCI code in transfer(data) was missing
1 parent aa013bd commit 7df2144

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/SPI/SPI.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ uint8_t ArduinoSPI::transfer(uint8_t data)
204204
if (_is_sci) {
205205
_spi_cb_event[_cb_event_idx] = SPI_EVENT_TRANSFER_ABORTED;
206206

207+
_write_then_read(&_spi_sci_ctrl, &data, &rxbuf, 1, SPI_BIT_WIDTH_8_BITS);
208+
207209
for (auto const start = millis();
208210
(SPI_EVENT_TRANSFER_COMPLETE != _spi_cb_event[_cb_event_idx]) && (millis() - start < 1000); )
209211
{

0 commit comments

Comments
 (0)