diff --git a/libraries/mbed/api/SPI.h b/libraries/mbed/api/SPI.h index a34f5c77ed..63eba2550f 100644 --- a/libraries/mbed/api/SPI.h +++ b/libraries/mbed/api/SPI.h @@ -128,7 +128,7 @@ public: if (spi_active(&_spi)) { return queue_transfer(tx_buffer, tx_length, rx_buffer, rx_length, sizeof(Type)*8, callback, event); } - start_transfer(tx_buffer, tx_length, rx_buffer, rx_buffer, rx_length, sizeof(Type)*8, callback, event); + start_transfer(tx_buffer, tx_length, rx_buffer, rx_length, sizeof(Type)*8, callback, event); return 0; }