shell: print error when flash device cannot be probed

This commit is contained in:
S.J.R. van Schaik 2017-04-07 17:33:30 +02:00
parent 0bc1146ffd
commit db3de90f24

View file

@ -82,7 +82,9 @@ static void do_flash_probe(const char *s)
flash = NULL;
}
flash = flash_probe();
if (!(flash = flash_probe())) {
fprintf(stderr, "error: unable to probe flash device.\n");
}
}
static void do_flash_read(const char *s)