@@ -86,6 +86,7 @@ void CardConfigurator::parseConfigUriCrorc(std::string configUri, Parameters& pa
8686{
8787 bool dynamicOffset = false ;
8888 uint16_t timeFrameLength = 0x100 ;
89+ uint16_t crorcId = 0x0 ;
8990
9091 std::unique_ptr<o2::configuration::ConfigurationInterface> conf;
9192 try {
@@ -104,10 +105,13 @@ void CardConfigurator::parseConfigUriCrorc(std::string configUri, Parameters& pa
104105 if (group == " crorc" ) { // Configure the CRORC
105106 dynamicOffset = subtree.get <bool >(" dynamicOffset" );
106107 timeFrameLength = subtree.get <int >(" timeFrameLength" );
108+ std::string parsedString = subtree.get <std::string>(" crorcId" );
109+ crorcId = Hex::fromString (parsedString);
107110 }
108111
109112 parameters.setDynamicOffsetEnabled (dynamicOffset);
110113 parameters.setTimeFrameLength (timeFrameLength);
114+ parameters.setCrorcId (crorcId);
111115 }
112116 } catch (...) {
113117 BOOST_THROW_EXCEPTION (ParseException () << ErrorInfo::ConfigParse (group));
@@ -129,7 +133,6 @@ void CardConfigurator::parseConfigUriCru(std::string configUri, Parameters& para
129133 bool dynamicOffset = false ;
130134 uint32_t onuAddress = 0x0 ;
131135 uint16_t cruId = 0x0 ;
132- uint16_t crorcId = 0x0 ;
133136 GbtMode::type gbtMode = GbtMode::type::Gbt;
134137 DownstreamData::type downstreamData = DownstreamData::type::Ctp;
135138 uint32_t triggerWindowSize = 1000 ;
@@ -213,14 +216,6 @@ void CardConfigurator::parseConfigUriCru(std::string configUri, Parameters& para
213216 parameters.setUserAndCommonLogicEnabled (userAndCommonLogicEnabled);
214217 parameters.setSystemId (systemId);
215218 parameters.setTimeFrameLength (timeFrameLength);
216-
217- } else if (group == " crorc" ) {
218-
219- parsedString = subtree.get <std::string>(" crorcId" );
220- crorcId = Hex::fromString (parsedString);
221-
222- parameters.setCrorcId (crorcId);
223-
224219 } else if (group == " links" ) { // Configure all links with default values
225220
226221 enabled = subtree.get <bool >(" enabled" );
0 commit comments