datastream 10g Receiver (#401)

* datastream not updated when tengiga enabled in receiver
This commit is contained in:
Dhanya Thattil 2022-02-24 16:16:48 +01:00 committed by GitHub
parent 939fc70284
commit 0b7c202f98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1476,10 +1476,10 @@ void Implementation::setTenGigaEnable(const bool b) {
detectorDataStream[LEFT] = detectorDataStream10GbE[LEFT]; detectorDataStream[LEFT] = detectorDataStream10GbE[LEFT];
detectorDataStream[RIGHT] = detectorDataStream10GbE[RIGHT]; detectorDataStream[RIGHT] = detectorDataStream10GbE[RIGHT];
} }
LOG(logINFO) << "Detector datastream updated [Left: " LOG(logDEBUG) << "Detector datastream updated [Left: "
<< sls::ToString(detectorDataStream[LEFT]) << sls::ToString(detectorDataStream[LEFT])
<< ", Right: " << ", Right: "
<< sls::ToString(detectorDataStream[RIGHT]) << "]"; << sls::ToString(detectorDataStream[RIGHT]) << "]";
} }
} }
LOG(logINFO) << "Ten Giga: " << (tengigaEnable ? "enabled" : "disabled"); LOG(logINFO) << "Ten Giga: " << (tengigaEnable ? "enabled" : "disabled");
@ -1550,6 +1550,13 @@ void Implementation::setDetectorDataStream(const portPosition port,
detectorDataStream10GbE[index] = enable; detectorDataStream10GbE[index] = enable;
LOG(logINFO) << "Detector 10GbE datastream (" << sls::ToString(port) LOG(logINFO) << "Detector 10GbE datastream (" << sls::ToString(port)
<< " Port): " << sls::ToString(detectorDataStream10GbE[index]); << " Port): " << sls::ToString(detectorDataStream10GbE[index]);
// update datastream for 10g
if (tengigaEnable) {
detectorDataStream[index] = detectorDataStream10GbE[index];
LOG(logDEBUG) << "Detector datastream updated ["
<< (index == 0 ? "Left" : "Right")
<< "] : " << sls::ToString(detectorDataStream[index]);
}
} }
int Implementation::getReadNRows() const { return readNRows; } int Implementation::getReadNRows() const { return readNRows; }