Changeset 10119 for fact/BIASctrl


Ignore:
Timestamp:
01/25/11 12:41:18 (14 years ago)
Author:
ogrimm
Message:
Bias has two commands for setting voltage: 'pixel' and 'channel'
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/BIASctrl/User.cc

    r10118 r10119  
    213213        for (int i=Crt.Min; i<=Crt.Max; i++) for (int j=Chan.Min; j<=Chan.Max; j++) {
    214214          // Check that indices are in legal range
    215           if (i<0 || i>=(int) Crates.size() || j<0 || j >=NUM_CHANNELS) continue;
     215          if (i<0 || i>=(int) Crates.size() || j<0 || j >=MAX_NUM_BOARDS*NUM_CHANNELS) continue;
    216216 
    217217          // Voltage change (number starts with + oder -) ignored if current DAC value is zero
Note: See TracChangeset for help on using the changeset viewer.