Skip to content

Commit

Permalink
logstorage: fix sync cache to log file error
Browse files Browse the repository at this point in the history
  • Loading branch information
BichDaoBosch committed Dec 26, 2023
1 parent 543087b commit 74e3301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/offlinelogstorage/dlt_offline_logstorage_behavior.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 74e3301

Please sign in to comment.