stm32 SPI - Fix dereference of non-pointer type.
@@ -69,8 +69,8 @@ HAL_StatusTypeDef HAL_SPI_Init(SPI_HandleTypeDef *hspi)
assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler));
assert_param(IS_SPI_FIRST_BIT(hspi->Init.FirstBit));
- hspi->Init->CRCCalculation = SPI_CRCCALCULATION_DISABLE;
- hspi->Init->CRCPolynomial = 1;
+ hspi->Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
+ hspi->Init.CRCPolynomial = 1;
if (hspi->State == HAL_SPI_STATE_RESET)
{
