mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Undefine BR_BITS for safety
This commit is contained in:
parent
67a44c4636
commit
6936601415
1 changed files with 2 additions and 0 deletions
|
@ -275,6 +275,8 @@ void spiSetDivisor(SPI_TypeDef *instance, uint16_t divisor)
|
|||
instance->CR1 = (tempRegister | ((ffs(divisor | 0x100) - 2) << 3));
|
||||
|
||||
SPI_Cmd(instance, ENABLE);
|
||||
|
||||
#undef BR_BITS
|
||||
}
|
||||
|
||||
uint16_t spiGetErrorCounter(SPI_TypeDef *instance)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue