mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-26 03:32:17 +00:00
bdk: sd: return proper error for sd file save
This commit is contained in:
parent
a76ad9838e
commit
0fef90dc4c
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ int sd_save_to_file(void *buf, u32 size, const char *filename)
|
||||||
FIL fp;
|
FIL fp;
|
||||||
u32 res = 0;
|
u32 res = 0;
|
||||||
if (!sd_get_card_mounted())
|
if (!sd_get_card_mounted())
|
||||||
return NULL;
|
return FR_DISK_ERR;
|
||||||
|
|
||||||
res = f_open(&fp, filename, FA_CREATE_ALWAYS | FA_WRITE);
|
res = f_open(&fp, filename, FA_CREATE_ALWAYS | FA_WRITE);
|
||||||
if (res)
|
if (res)
|
||||||
|
|
Loading…
Reference in a new issue