shell: release flash device before probing
This commit is contained in:
parent
1fa1dfefb1
commit
45c1730149
1 changed files with 5 additions and 0 deletions
|
@ -77,6 +77,11 @@ static void do_flash_probe(const char *s)
|
||||||
{
|
{
|
||||||
(void)s;
|
(void)s;
|
||||||
|
|
||||||
|
if (flash) {
|
||||||
|
flash_release(flash);
|
||||||
|
flash = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
flash = flash_probe();
|
flash = flash_probe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue