mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
spi: fix the misleading example, letting the master wait until slave is ready
This commit is contained in:
parent
27f3c3e668
commit
0c64d8e822
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user