Skip to content
Snippets Groups Projects
Commit 516dd8e9 authored by wierenga's avatar wierenga
Browse files

BugID: 781

Use single MAX_N_RCUS definition from MEPHeader
parent 87d60a17
No related branches found
No related tags found
No related merge requests found
...@@ -76,9 +76,9 @@ namespace LOFAR { ...@@ -76,9 +76,9 @@ namespace LOFAR {
/** /**
* Get the mask (MAX_N_RCUS bits). * Get the mask (MAX_N_RCUS bits).
*/ */
std::bitset<MAX_N_RCUS> getRCUMask() const std::bitset<MEPHeader::MAX_N_RCUS> getRCUMask() const
{ {
std::bitset<MAX_N_RCUS> mask; std::bitset<MEPHeader::MAX_N_RCUS> mask;
mask.reset(); mask.reset();
std::list<int>::const_iterator it; std::list<int>::const_iterator it;
...@@ -86,7 +86,7 @@ namespace LOFAR { ...@@ -86,7 +86,7 @@ namespace LOFAR {
for (it = m_select.begin(); it != m_select.end(); ++it, ++count) { for (it = m_select.begin(); it != m_select.end(); ++it, ++count) {
if (count >= get_ndevices()) if (count >= get_ndevices())
break; break;
if (*it < MAX_N_RCUS) if (*it < MEPHeader::MAX_N_RCUS)
mask.set(*it); mask.set(*it);
} }
return mask; return mask;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment