Skip to content

Commit

Permalink
fix sdcard_unmount crashing when sd missing
Browse files Browse the repository at this point in the history
  • Loading branch information
italocjs committed Jul 13, 2024
1 parent 5e19e08 commit d116e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/SD/src/sd_diskio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ uint8_t sdcard_unmount(uint8_t pdrv)
card->type = CARD_NONE;

char drv[3] = {(char)('0' + pdrv), ':', 0};
f_mount(NULL, drv, 0);
// f_mount(NULL, drv, 0);
return 0;
}

Expand Down

0 comments on commit d116e20

Please sign in to comment.