File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,6 @@ void CrorcBar::assertLinkUp()
166166 }
167167 }
168168
169- std::this_thread::sleep_for (500ms);
170169 if (!checkLinkUp ()) {
171170 BOOST_THROW_EXCEPTION (CrorcCheckLinkException () << ErrorInfo::Message (" Link was not up" ));
172171 }
Original file line number Diff line number Diff line change @@ -93,6 +93,12 @@ CrorcDmaChannel::CrorcDmaChannel(const Parameters& parameters)
9393
9494 getReadyFifoUser ()->reset ();
9595 mDmaBufferUserspace = getBufferProvider ().getAddress ();
96+
97+ if (mDataSource == DataSource::Fee || mDataSource == DataSource::Siu) {
98+ deviceResetChannel (ResetLevel::InternalSiu);
99+ } else {
100+ deviceResetChannel (ResetLevel::Internal);
101+ }
96102}
97103
98104auto CrorcDmaChannel::allowedChannels () -> AllowedChannels
@@ -106,11 +112,7 @@ CrorcDmaChannel::~CrorcDmaChannel()
106112
107113void CrorcDmaChannel::deviceStartDma ()
108114{
109- if (mDataSource == DataSource::Fee || mDataSource == DataSource::Siu) {
110- deviceResetChannel (ResetLevel::InternalSiu);
111- } else {
112- deviceResetChannel (ResetLevel::Internal);
113- }
115+ deviceResetChannel (ResetLevel::Internal);
114116
115117 startDataReceiving ();
116118
You can’t perform that action at this time.
0 commit comments