File tree Expand file tree Collapse file tree
STM32F1/libraries/SPI/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -348,10 +348,10 @@ void SPIClass::write(const uint8 *data, uint32 length) {
348348 }
349349 while (spi_is_tx_empty (_currentSetting->spi_d ) == 0 ); // "4. After writing the last data item into the SPI_DR register, wait until TXE=1 ..."
350350 while (spi_is_busy (_currentSetting->spi_d ) != 0 ); // "... then wait until BSY=0, this indicates that the transmission of the last data is complete."
351- - // taken from SdSpiSTM32F1.cpp - Victor's lib, and adapted to support device selection
352- - if (spi_is_rx_nonempty (_currentSetting->spi_d )) {
353- - uint8_t b = spi_rx_reg (_currentSetting->spi_d );
354- - }
351+ // taken from SdSpiSTM32F1.cpp - Victor's lib, and adapted to support device selection
352+ if (spi_is_rx_nonempty (_currentSetting->spi_d )) {
353+ uint8_t b = spi_rx_reg (_currentSetting->spi_d );
354+ }
355355}
356356
357357uint8 SPIClass::transfer (uint8 byte) const {
You can’t perform that action at this time.
0 commit comments