Skip to content

Commit 3d1b6d9

Browse files
committed
fix typo
1 parent bd9893a commit 3d1b6d9

File tree

1 file changed

+1
-1
lines changed
  • ports/stm32f4/common-hal/busio

1 file changed

+1
-1
lines changed

ports/stm32f4/common-hal/busio/SPI.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ STATIC uint32_t get_busclock(SPI_TypeDef * instance) {
5050
if(instance == SPI2) return HAL_RCC_GetPCLK1Freq();
5151
#endif
5252
#ifdef SPI3
53-
if(instance == SPI2) return HAL_RCC_GetPCLK1Freq();
53+
if(instance == SPI3) return HAL_RCC_GetPCLK1Freq();
5454
#endif
5555
return HAL_RCC_GetPCLK2Freq();
5656
}

0 commit comments

Comments
 (0)