mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-30 02:51:33 +08:00
Update drv_flash_f1.c
调整stm32_flash_erase的返回值
This commit is contained in:
parent
bac9410d7d
commit
5a5f262649
@ -231,6 +231,11 @@ int stm32_flash_erase(rt_uint32_t addr, size_t size)
|
||||
}
|
||||
}
|
||||
|
||||
if (result != RT_EOK)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
return size_bank1 + size_bank2;
|
||||
#else
|
||||
return stm32_flash_erase_bank(FLASH_BANK_1, addr, size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user