Changeset 12222


Ignore:
Timestamp:
10/20/11 22:32:09 (13 years ago)
Author:
tbretz
Message:
Fixed status VoltageOff.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/biasctrl.cc

    r12214 r12222  
    13751375                return BIAS::kOverCurrent;
    13761376
     1377        bool isoff = true;
    13771378        for (int ch=0; ch<kNumChannels; ch++)
    1378             if (fPresent[ch/kNumChannelsPerBoard] && fVolt[ch]==0)
    1379                 return BIAS::kVoltageOff;
     1379            if (fPresent[ch/kNumChannelsPerBoard] && fVolt[ch]!=0)
     1380                isoff = false;
     1381        if (isoff)
     1382            return BIAS::kVoltageOff;
    13801383
    13811384        for (int ch=0; ch<kNumChannels; ch++)
Note: See TracChangeset for help on using the changeset viewer.