Skip to content
Snippets Groups Projects
Commit 2286a593 authored by Dominik Loidolt's avatar Dominik Loidolt
Browse files

Fixed an error when using the last_info option that caused the model to be set to zero

parent 78174e8c
Branches
Tags
No related merge requests found
...@@ -18,7 +18,7 @@ All notable changes to this project will be documented in this file. ...@@ -18,7 +18,7 @@ All notable changes to this project will be documented in this file.
- remove memory leaks from tests - remove memory leaks from tests
- fixed incorrect error message when using rdcu_pkt option without .rdcu_pkt_mode_cfg file - fixed incorrect error message when using rdcu_pkt option without .rdcu_pkt_mode_cfg file
- set the rdcu_par option when using the rdcu_pkt option - set the rdcu_par option when using the rdcu_pkt option
- fixed a bug when using the last_info option - fixed several bug when using the last_info option
## [0.09] - 30-09-2022 ## [0.09] - 30-09-2022
......
...@@ -746,11 +746,15 @@ static int compression(struct cmp_cfg *cfg, struct cmp_info *info) ...@@ -746,11 +746,15 @@ static int compression(struct cmp_cfg *cfg, struct cmp_info *info)
} }
if (rdcu_pkt_mode) { if (rdcu_pkt_mode) {
void *tmp = cfg->icu_new_model_buf;
cfg->icu_new_model_buf = NULL;
printf("Generate compression setup packets ...\n"); printf("Generate compression setup packets ...\n");
error = gen_rdcu_write_pkts(cfg); error = gen_rdcu_write_pkts(cfg);
if (error) if (error)
goto error_cleanup; goto error_cleanup;
printf("... DONE\n"); printf("... DONE\n");
cfg->icu_new_model_buf = tmp;
} }
printf("Compress data ... "); printf("Compress data ... ");
......
project('cmp_tool', 'c', project('cmp_tool', 'c',
version : '0.10-b.3', version : '0.10-b.4',
meson_version : '>= 0.56', meson_version : '>= 0.56',
license : 'GPL-2.0', license : 'GPL-2.0',
default_options : ['warning_level=3', 'c_std=gnu99'] default_options : ['warning_level=3', 'c_std=gnu99']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment