Skip to content

Commit

Permalink
Fixed issues with DMA being unable to write files
Browse files Browse the repository at this point in the history
  • Loading branch information
desk-fish committed Apr 3, 2022
1 parent 3535e4a commit 5b1bb35
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tool/pftool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -765,11 +765,7 @@ static void daq( const std::string& cmd, PolarfireTarget* pft ) {
pft->prepareNewRun();

// start DMA, if that's what we're doing...
if (dma_enabled && !start_dma_cmd.empty()) {
printf("Launching DMA...\n");
std::string cmd=start_dma_cmd+" "+fname;
system(cmd.c_str());
}
if (dma_enabled) rwbi->daq_dma_dest(fname);

// enable external triggers
pft->backend->fc_enables(true,true,false);
Expand Down Expand Up @@ -808,11 +804,7 @@ static void daq( const std::string& cmd, PolarfireTarget* pft ) {

if (f) fclose(f);

if (dma_enabled && !stop_dma_cmd.empty()) {
printf("Stopping DMA...\n");
std::string cmd=stop_dma_cmd;
system(cmd.c_str());
}
if (dma_enabled) rwbi->daq_dma_close();

}
if (cmd=="PEDESTAL" || cmd=="CHARGE") {
Expand Down

0 comments on commit 5b1bb35

Please sign in to comment.