Skip to content

Commit b81d7b7

Browse files
committed
removed unwanted dashes which caused compiling error
1 parent 796dc93 commit b81d7b7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

STM32F1/libraries/SPI/src/SPI.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

357357
uint8 SPIClass::transfer(uint8 byte) const {

0 commit comments

Comments
 (0)