[FL-3552] Sub-GHz: Check saved file

This commit is contained in:
SkorP 2023-08-17 16:48:37 +04:00 committed by MX
parent 3507c89dbb
commit e1c83692c3
No known key found for this signature in database
GPG Key ID: 7CCC66B7DBDD1C83

View File

@ -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);