mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-01-01 09:43:09 +03:00
[FL-3552] Sub-GHz: Check saved file
This commit is contained in:
parent
3507c89dbb
commit
e1c83692c3
@ -309,10 +309,14 @@ bool subghz_save_protocol_to_file(
|
||||
if(!storage_simply_remove(storage, dev_file_name)) {
|
||||
break;
|
||||
}
|
||||
//ToDo check Write
|
||||
|
||||
stream_seek(flipper_format_stream, 0, StreamOffsetFromStart);
|
||||
stream_save_to_file(flipper_format_stream, storage, dev_file_name, FSOM_CREATE_ALWAYS);
|
||||
|
||||
if(storage_common_stat(storage, dev_file_name, NULL) != FSE_OK) {
|
||||
break;
|
||||
}
|
||||
|
||||
saved = true;
|
||||
} while(0);
|
||||
furi_string_free(file_dir);
|
||||
|
Loading…
Reference in New Issue
Block a user