mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
HAL_ChibiOS: fixed flash build warning
This commit is contained in:
parent
9379e2c1ad
commit
5f88340919
@ -399,9 +399,7 @@ static bool stm32h7_flash_write32(uint32_t addr, const void *buf)
|
||||
|
||||
const uint32_t *v = (const uint32_t *)buf;
|
||||
for (uint8_t i=0; i<8; i++) {
|
||||
while ((FLASH->SR1 & (FLASH_SR_BSY|FLASH_SR_QW)) ||
|
||||
(FLASH->SR2 & (FLASH_SR_BSY|FLASH_SR_QW))) { // nop
|
||||
}
|
||||
while (*SR & (FLASH_SR_BSY|FLASH_SR_QW)) ;
|
||||
putreg32(*v, addr);
|
||||
v++;
|
||||
addr += 4;
|
||||
|
Loading…
Reference in New Issue
Block a user