mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
spi: fix the misleading example, letting the master wait until slave is ready
This commit is contained in:
@@ -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++;
|
||||
|
Reference in New Issue
Block a user