shell: release flash device before probing

This commit is contained in:
S.J.R. van Schaik 2017-03-31 16:03:55 +02:00
parent 1fa1dfefb1
commit 45c1730149

View file

@ -77,6 +77,11 @@ static void do_flash_probe(const char *s)
{
(void)s;
if (flash) {
flash_release(flash);
flash = NULL;
}
flash = flash_probe();
}