From 5b1bb35c8de6d902fc31c1df879b21e43db5c24a Mon Sep 17 00:00:00 2001 From: desk-fish Date: Sun, 3 Apr 2022 22:24:21 +0200 Subject: [PATCH] Fixed issues with DMA being unable to write files --- tool/pftool.cc | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/tool/pftool.cc b/tool/pftool.cc index 0890266d..d183db6e 100644 --- a/tool/pftool.cc +++ b/tool/pftool.cc @@ -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); @@ -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") {