removed unwanted dashes which caused compiling error

This commit is contained in:
stevstrong 2015-11-04 08:08:21 +01:00
parent 796dc93ab9
commit b81d7b7334
1 changed files with 4 additions and 4 deletions

View File

@ -348,10 +348,10 @@ void SPIClass::write(const uint8 *data, uint32 length) {
} }
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 ..." 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 ..."
while (spi_is_busy(_currentSetting->spi_d) != 0); // "... then wait until BSY=0, this indicates that the transmission of the last data is complete." while (spi_is_busy(_currentSetting->spi_d) != 0); // "... then wait until BSY=0, this indicates that the transmission of the last data is complete."
- // taken from SdSpiSTM32F1.cpp - Victor's lib, and adapted to support device selection // taken from SdSpiSTM32F1.cpp - Victor's lib, and adapted to support device selection
- if (spi_is_rx_nonempty(_currentSetting->spi_d)) { if (spi_is_rx_nonempty(_currentSetting->spi_d)) {
- uint8_t b = spi_rx_reg(_currentSetting->spi_d); uint8_t b = spi_rx_reg(_currentSetting->spi_d);
- } }
} }
uint8 SPIClass::transfer(uint8 byte) const { uint8 SPIClass::transfer(uint8 byte) const {