From 0c64d8e822249f88001658e5fb87cfb2e76c4e0c Mon Sep 17 00:00:00 2001 From: "Michael (XIAO Xufeng)" Date: Wed, 29 Aug 2018 18:40:21 +0800 Subject: [PATCH] spi: fix the misleading example, letting the master wait until slave is ready --- examples/peripherals/spi_slave/sender/main/app_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/peripherals/spi_slave/sender/main/app_main.c b/examples/peripherals/spi_slave/sender/main/app_main.c index c3eb565927..b033fcf2a9 100644 --- a/examples/peripherals/spi_slave/sender/main/app_main.c +++ b/examples/peripherals/spi_slave/sender/main/app_main.c @@ -152,7 +152,7 @@ void app_main() t.tx_buffer=sendbuf; t.rx_buffer=recvbuf; //Wait for slave to be ready for next byte before sending - xSemaphoreTake(rdySem, 100);//portMAX_DELAY); //Wait until slave is ready + xSemaphoreTake(rdySem, portMAX_DELAY); //Wait until slave is ready ret=spi_device_transmit(handle, &t); printf("Received: %s\n", recvbuf); n++;