mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Merge pull request #7080 from jflyper/bfdev-fix-do-not-call-flashIsReady-when-no-flash
[FLASHFS] Avoid calling flashIsReady when flash chip is non-existent
This commit is contained in:
commit
a2cfa7b1f0
1 changed files with 3 additions and 1 deletions
|
@ -110,7 +110,9 @@ void flashfsEraseRange(uint32_t start, uint32_t end)
|
|||
*/
|
||||
bool flashfsIsReady(void)
|
||||
{
|
||||
return flashIsReady();
|
||||
// Check for flash chip existence first, then check if ready.
|
||||
|
||||
return (flashfsIsSupported() && flashIsReady());
|
||||
}
|
||||
|
||||
bool flashfsIsSupported(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue