aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/multi/SPI/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/multi/SPI/main.c')
-rwxr-xr-xtesthal/STM32/multi/SPI/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testhal/STM32/multi/SPI/main.c b/testhal/STM32/multi/SPI/main.c
index aa8d9bb33..96e2ee154 100755
--- a/testhal/STM32/multi/SPI/main.c
+++ b/testhal/STM32/multi/SPI/main.c
@@ -32,7 +32,7 @@ CC_ALIGN(32) static uint8_t rxbuf[512];
*/
void spi_circular_cb(SPIDriver *spip) {
- if(spip->state == SPI_COMPLETE) {
+ if (spiIsBufferComplete(spip)) {
/* 2nd half.*/
palWriteLine(PORTAB_LINE_LED1, PORTAB_LED_OFF);
}