main: check if the flash chip can be probed properly

master
S.J.R. van Schaik 7 years ago
parent ece960b3c9
commit 3df8a7afdf
  1. 9
      source/main.c

@ -54,9 +54,12 @@ int main(void)
user_con = console_init(1);
admin_con = console_init(0);
flash = flash_probe();
flash = ftl_mount(flash);
mufs = mufs_mount(flash);
if ((flash = flash_probe())) {
flash = ftl_mount(flash);
mufs = mufs_mount(flash);
} else {
fprintf(admin_con->fp, "error: unable to probe flash chip.\n");
}
fprintf(user_con->fp, "TBM-dev (built on " __DATE__ ")\n");
fprintf(admin_con->fp, "TBM-dev (built on " __DATE__ ")\n");

Loading…
Cancel
Save