From b81d7b73346bdc45b87e58afbabee71fb6933cfe Mon Sep 17 00:00:00 2001 From: stevstrong Date: Wed, 4 Nov 2015 08:08:21 +0100 Subject: [PATCH] removed unwanted dashes which caused compiling error --- STM32F1/libraries/SPI/src/SPI.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/STM32F1/libraries/SPI/src/SPI.cpp b/STM32F1/libraries/SPI/src/SPI.cpp index e4321e2..851a3b1 100644 --- a/STM32F1/libraries/SPI/src/SPI.cpp +++ b/STM32F1/libraries/SPI/src/SPI.cpp @@ -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_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 -- if (spi_is_rx_nonempty(_currentSetting->spi_d)) { -- uint8_t b = spi_rx_reg(_currentSetting->spi_d); -- } + // taken from SdSpiSTM32F1.cpp - Victor's lib, and adapted to support device selection + if (spi_is_rx_nonempty(_currentSetting->spi_d)) { + uint8_t b = spi_rx_reg(_currentSetting->spi_d); + } } uint8 SPIClass::transfer(uint8 byte) const {