Skip to content

Commit c2e2764

Browse files
authored
Merge pull request #225 from sy-c/master
v2.11.1
2 parents 9ec1ef6 + a794a05 commit c2e2764

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

doc/releaseNotes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,3 +468,6 @@ This file describes the main feature changes for each readout.exe released versi
468468
- equipment-*.ctpMode: enables CTP mode, data is discarded until start of run detected in RDH detector field pattern, and after corresponding end of run is detected.
469469
- consumer-fileRecorder-*.tfMax: when set, recording will stop after reaching given number of timeframes.
470470
- o2-readout-rawreader: added option to dump stats on HBF size.
471+
472+
## v2.11.1 - 16/06/2022
473+
- Minor release for osx compatibility.

src/ReadoutEquipment.cxx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,17 @@ int ReadoutEquipment::processRdh(DataBlockContainerReference& block)
727727
auto bitsChanged = std::bitset<sizeof(uint32_t)>(h.getDetectorField() ^ lastDetectorField[lid]);
728728
uint32_t nChanged = bitsChanged.count();
729729
if (nChanged == 1) {
730-
int bitChanged = bitsChanged._Find_first();
730+
int bitChanged = bitsChanged.size();
731+
#ifdef __linux__
732+
bitChanged = bitsChanged._Find_first();
733+
#else
734+
for(int bitix = 0; bitix < (int)bitsChanged.size(); bitix++) {
735+
if (bitsChanged[bitix]) {
736+
bitChanged = bitix;
737+
break;
738+
}
739+
}
740+
#endif
731741
bool isSet = std::bitset<sizeof(uint32_t)>(h.getDetectorField()).test(bitChanged);
732742

733743
//theLog.log(LogInfoDevel_(3011), "bitChanged=%d isSet=%d ctpRunBit=%d discardData=%d", (int)bitChanged, (int)isSet, (int)ctpRunBit, (int)discardData);
@@ -872,7 +882,7 @@ int ReadoutEquipment::processRdh(DataBlockContainerReference& block)
872882
}
873883
}
874884

875-
if ((isDefinedLastDetectorField)&&(pageOffset)) {
885+
if ((isDefinedLastDetectorField[linkId])&&(pageOffset)) {
876886
if (checkChangesInDetectorField(h, pageOffset)) {
877887
if (cfgRdhDumpWarningEnabled) {
878888
theLog.log(logRdhErrorsToken, "Equipment %d Link %d RDH #%d @ 0x%X : detector field changed not at page beginning", id, (int)blockHeader.linkId, rdhIndexInPage, (unsigned int)pageOffset);

src/ReadoutVersion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
#define READOUT_VERSION "2.11"
12+
#define READOUT_VERSION "2.11.1"
1313

src/SocketRx.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ void SocketRx::run() {
195195
*/
196196
}
197197

198+
#ifndef MSG_NOSIGNAL
199+
#define MSG_NOSIGNAL 0
200+
#endif
201+
198202
void SocketRx::broadcast(const char *message) {
199203
if (message==nullptr) return;
200204
ssize_t l = strlen(message);

0 commit comments

Comments
 (0)