From 74e3301d5c6cedaf29832890146f2a2d5d35070e Mon Sep 17 00:00:00 2001 From: nad8hc Date: Tue, 26 Dec 2023 17:27:44 +0700 Subject: [PATCH] logstorage: fix sync cache to log file error --- 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 */