Changeset 15633 for trunk/FACT++


Ignore:
Timestamp:
05/17/13 13:18:40 (12 years ago)
Author:
tbretz
Message:
Issue an error on the console in case there is a cooling failre.
File:
1 edited

Legend:

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

    r15174 r15633  
    267267        // Timeout
    268268        if (!fLastReport.IsValid() || Time()>fLastReport+boost::posix_time::seconds(fInterval*3))
    269             return Power::State::kDisconnected;
     269            return kDisconnected;
    270270
    271271        // No data received yet
    272272        if (!fIsValid)
    273             return Power::State::kConnected;
     273            return kConnected;
    274274
    275275        /*
     
    401401        // synchronously, i.e. within the call to poll_one()
    402402        poll_one();
     403
     404        const int rc = fPower.GetState();
     405
     406        if (rc==Power::State::kCoolingFailure && GetCurrentState()!=Power::State::kCoolingFailure)
     407            Error("Power control unit reported cooling failure.");
    403408
    404409        return fPower.GetState();
Note: See TracChangeset for help on using the changeset viewer.