From c13178dc0b8d8071dbcaa148d131e63f61ffca1c Mon Sep 17 00:00:00 2001 From: Bich Dao <49158989+Bichdao021195@users.noreply.github.com> Date: Wed, 27 Dec 2023 02:10:19 +0700 Subject: [PATCH] logstorage: fix sync cache to log file error (#587) Co-authored-by: nad8hc --- src/offlinelogstorage/dlt_offline_logstorage_behavior.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/offlinelogstorage/dlt_offline_logstorage_behavior.c b/src/offlinelogstorage/dlt_offline_logstorage_behavior.c index ad710ca3a..937e2edd7 100644 --- a/src/offlinelogstorage/dlt_offline_logstorage_behavior.c +++ b/src/offlinelogstorage/dlt_offline_logstorage_behavior.c @@ -985,7 +985,7 @@ DLT_STATIC int dlt_logstorage_sync_to_file(DltLogStorageFilterConfig *config, if ((start_index >= 0) && (end_index > start_index) && (count > 0) && (count <= remain_file_size)) { - dlt_logstorage_write_to_log((uint8_t*)config->cache + start_offset + start_index, count, 1, config); + ret = dlt_logstorage_write_to_log((uint8_t*)config->cache + start_offset + start_index, count, 1, config); dlt_logstorage_check_write_ret(config, ret); /* Close log file */