diff --git a/platform/msb430/dev/sd-arch.c b/platform/msb430/dev/sd-arch.c index 1d48c61e0..02f5666f0 100755 --- a/platform/msb430/dev/sd-arch.c +++ b/platform/msb430/dev/sd-arch.c @@ -72,11 +72,13 @@ void sd_arch_spi_write_block(uint8_t *bytes, int amount) { int i; + volatile char dummy; for(i = 0; i < amount; i++) { UART_TX = bytes[i]; UART_WAIT_TXDONE(); - UART_RX; + UART_WAIT_RX(); + dummy = UART_RX; } }