diff --git a/os/hal/platforms/STM32/spi_lld.c b/os/hal/platforms/STM32/spi_lld.c index ee3bd6197..37961c2a7 100644 --- a/os/hal/platforms/STM32/spi_lld.c +++ b/os/hal/platforms/STM32/spi_lld.c @@ -97,7 +97,7 @@ static void spi_start_wait(SPIDriver *spip, size_t n, /* Wait for completion event.*/ spip->spd_thread = currp; - chSchGoSleepS(PRSUSPENDED); + chSchGoSleepS(THD_STATE_SUSPENDED); spip->spd_thread = NULL; chSysUnlock(); }