From 147c2b9cdd57c4b7f97c0f3d58e94261e93d1a44 Mon Sep 17 00:00:00 2001 From: bogd Date: Wed, 17 Jul 2024 15:03:03 +0200 Subject: [PATCH] reset transaction on file delete error --- src/FileBlockHandler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/FileBlockHandler.c b/src/FileBlockHandler.c index 0344e6c..7b3b1d0 100644 --- a/src/FileBlockHandler.c +++ b/src/FileBlockHandler.c @@ -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); snprintf(argres, VAR_MAX_VALUE_LENGTH, "\"ERROR:DIR_NOT_FOUND\""); + FileTransaction.open_file_timeout = 0; return; } }