mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
f4 flash: fix flash voltage range setting in bl_helper
F4 boards are powered by 3.3V which corresponds to VoltageRange_3. Fix this to match actual VDD so we get faster erase/write times.
This commit is contained in:
parent
8059004755
commit
730defb698
@ -152,7 +152,7 @@ uint8_t PIOS_BL_HELPER_FLASH_Start()
|
||||
PIOS_Assert(0);
|
||||
}
|
||||
for (int retry = 0; retry < MAX_DEL_RETRYS; ++retry) {
|
||||
if (FLASH_EraseSector(sector_number, VoltageRange_2) == FLASH_COMPLETE) {
|
||||
if (FLASH_EraseSector(sector_number, VoltageRange_3) == FLASH_COMPLETE) {
|
||||
fail = false;
|
||||
break;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user