mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
Diff: targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/spi_api.c
- Revision:
- 181:a4cbdfbbd2f4
- Parent:
- 172:2f4f8c56b261
- Child:
- 215:83cf97a28428
diff -r 097147d37470 -r a4cbdfbbd2f4 targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/spi_api.c --- a/targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/spi_api.c Wed May 07 11:45:52 2014 +0100 +++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/spi_api.c Wed May 07 13:15:08 2014 +0100 @@ -256,7 +256,7 @@ } int spi_slave_receive(spi_t *obj) { - return (!ssp_busy(obj)) ? (1) : (0); + return (ssp_readable(obj) && !ssp_busy(obj)) ? (1) : (0); }; int spi_slave_read(spi_t *obj) {