未验证 提交 5a5f2626 编写于 作者: R redoc 提交者: GitHub

Update drv_flash_f1.c

调整stm32_flash_erase的返回值
上级 bac9410d
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册