start the DMA only when then the receiver is in post-processing mode

This commit is contained in:
Marc Majoral 2020-09-10 11:57:50 +02:00 committed by Carles Fernandez
parent 933873c265
commit 6fcae1a917
1 changed files with 5 additions and 1 deletions

View File

@ -111,7 +111,11 @@ void GNSSFlowgraph::start()
}
#ifdef ENABLE_FPGA
sig_source_.at(0)->start();
// start the DMA if the receiver is in post-processing mode
if (configuration_->property(sig_source_.at(0)->role() + ".switch_position", 0) == 0)
{
sig_source_.at(0)->start();
}
#endif
running_ = true;