mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-25 06:13:14 +03:00
Handle storage full error (#1958)
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
parent
a09d0a8bd4
commit
c417d467f7
@ -405,6 +405,10 @@ static void rpc_system_storage_write_process(const PB_Main* request, void* conte
|
||||
if(!fs_operation_success) {
|
||||
send_response = true;
|
||||
command_status = rpc_system_storage_get_file_error(file);
|
||||
if(command_status == PB_CommandStatus_OK) {
|
||||
// Report errors not handled by underlying APIs
|
||||
command_status = PB_CommandStatus_ERROR_STORAGE_INTERNAL;
|
||||
}
|
||||
}
|
||||
|
||||
if(send_response) {
|
||||
|
Loading…
Reference in New Issue
Block a user