mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 12:42:30 +04:00
Storage: internal error getter (#806)
* Storage: internal error getter Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -324,6 +324,11 @@ FS_Error storage_file_get_error(File* file) {
|
||||
return file->error_id;
|
||||
}
|
||||
|
||||
int32_t storage_file_get_internal_error(File* file) {
|
||||
furi_check(file != NULL);
|
||||
return file->internal_error_id;
|
||||
}
|
||||
|
||||
const char* storage_file_get_error_desc(File* file) {
|
||||
furi_check(file != NULL);
|
||||
return filesystem_api_error_get_desc(file->error_id);
|
||||
|
||||
Reference in New Issue
Block a user