reset transaction on file delete error
This commit is contained in:
parent
8a1027a408
commit
147c2b9cdd
|
|
@ -196,6 +196,7 @@ void FileBlockHandler(char *argres, int rw, const char *path)
|
||||||
{
|
{
|
||||||
ESP_LOGE("FILE_API", "File does not exist : %s", FileTransaction.mem_object);
|
ESP_LOGE("FILE_API", "File does not exist : %s", FileTransaction.mem_object);
|
||||||
snprintf(argres, VAR_MAX_VALUE_LENGTH, "\"ERROR:DIR_NOT_FOUND\"");
|
snprintf(argres, VAR_MAX_VALUE_LENGTH, "\"ERROR:DIR_NOT_FOUND\"");
|
||||||
|
FileTransaction.open_file_timeout = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user