Update drv_flash_f1.c

调整stm32_flash_erase的返回值
This commit is contained in:
redoc 2020-03-18 15:31:20 +08:00 committed by GitHub
parent bac9410d7d
commit 5a5f262649
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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);