Skip to content

Commit

Permalink
Merge pull request #365 from DUNE-DAQ/gcrone/trb-disable-check
Browse files Browse the repository at this point in the history
Don't setup  data request for disabled readout apps
  • Loading branch information
glehmannmiotto committed Jul 12, 2024
2 parents 9e1a7f4 + f0791cc commit ed89704
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/TRBModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ TRBModule::init(std::shared_ptr<appfwk::ModuleConfiguration> mcfg)
auto roapp = app->cast<appmodel::ReadoutApplication>();
auto smartapp = app->cast<appmodel::SmartDaqApplication>();
if (roapp != nullptr) {
setup_data_request_connections(roapp);
if (!roapp->disabled(*session)) {
setup_data_request_connections(roapp);
}
} else if (smartapp != nullptr) {
auto source_id_check = smartapp->get_source_id();
if (source_id_check != nullptr) {
Expand Down

0 comments on commit ed89704

Please sign in to comment.