shell: release flash device before probing

tags/0.1.0
S.J.R. van Schaik 8 years ago
parent 1fa1dfefb1
commit 45c1730149
  1. 5
      source/shell/flash.c

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

Loading…
Cancel
Save