Ignore:
Timestamp:
01/19/11 13:11:51 (12 years ago)
Author:
ogrimm
Message:
hv command crashed when no bias board present
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/BIASctrl/User.cc

    r10096 r10107  
    204204        }
    205205
     206
    206207        // Loop over given crates and channels
    207208        for (int i=Crt.Min; i<=Crt.Max; i++) for (int j=Chan.Min; j<=Chan.Max; j++) {
     209          // Check that indices are in legal range
     210          if (i<0 || i>=(int) Crates.size() || j<0 || j >=NUM_CHANNELS) continue;
     211 
    208212          // Voltage change (number starts with + oder -) ignored if current DAC value is zero
    209213          if (isdigit(Parameter[n+1][0])==0 && Crates[i]->GetDAC(j) == 0) continue;
Note: See TracChangeset for help on using the changeset viewer.