From 89e7e294f2e55f13aafe250550fb7ed747fc94ee Mon Sep 17 00:00:00 2001 From: Fred Wu Date: Sat, 2 Jul 2022 15:59:02 +0800 Subject: [PATCH] Update misc.cpp Fix a bug which resets all parameters to default value when writing a fec parameter to the fifo file. --- misc.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/misc.cpp b/misc.cpp index e9715d8..f56e2d5 100644 --- a/misc.cpp +++ b/misc.cpp @@ -292,9 +292,7 @@ int handle_command(char *s) mylog(log_warn,"failed to parse [%s]\n",tmp_str); return -1; } - int version=g_fec_par.version; - g_fec_par.clone(tmp_par); - g_fec_par.version=version; + g_fec_par.clone_fec(tmp_par); g_fec_par.version++; strcpy(rs_par_str,tmp_str); //g_fec_data_num=a;