Commit fcb16521 authored by Raphael Defosseux's avatar Raphael Defosseux

Hot fix on UE configuration module proposed by Xenofon Foukas

Signed-off-by: Raphael Defosseux's avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent f7a2965b
Pipeline #11613 passed with stage
in 0 seconds
...@@ -693,9 +693,13 @@ int main( int argc, char **argv ) { ...@@ -693,9 +693,13 @@ int main( int argc, char **argv ) {
#if defined (XFORMS) #if defined (XFORMS)
int ret; int ret;
#endif #endif
configmodule_interface_t *config_mod;
start_background_system(); start_background_system();
if ( load_configmodule(argc,argv,CONFIG_ENABLECMDLINEONLY) == NULL) { config_mod = load_configmodule(argc, argv, CONFIG_ENABLECMDLINEONLY);
if (config_mod == NULL) {
exit_fun("[SOFTMODEM] Error, configuration module init failed\n"); exit_fun("[SOFTMODEM] Error, configuration module init failed\n");
} }
...@@ -811,7 +815,7 @@ int main( int argc, char **argv ) { ...@@ -811,7 +815,7 @@ int main( int argc, char **argv ) {
} else init_openair0(frame_parms[0],(int)rx_gain[0][0]); } else init_openair0(frame_parms[0],(int)rx_gain[0][0]);
if (simL1flag==1) { if (simL1flag==1) {
AssertFatal(NULL!=load_configmodule(argc,argv,CONFIG_ENABLECMDLINEONLY), AssertFatal(NULL!=config_mod,
"[SOFTMODEM] Error, configuration module init failed\n"); "[SOFTMODEM] Error, configuration module init failed\n");
RCConfig_sim(); RCConfig_sim();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment