Changeset 15633 for trunk/FACT++
- Timestamp:
- 05/17/13 13:18:40 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/pwrctrl.cc
r15174 r15633 267 267 // Timeout 268 268 if (!fLastReport.IsValid() || Time()>fLastReport+boost::posix_time::seconds(fInterval*3)) 269 return Power::State::kDisconnected;269 return kDisconnected; 270 270 271 271 // No data received yet 272 272 if (!fIsValid) 273 return Power::State::kConnected;273 return kConnected; 274 274 275 275 /* … … 401 401 // synchronously, i.e. within the call to poll_one() 402 402 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."); 403 408 404 409 return fPower.GetState();
Note:
See TracChangeset
for help on using the changeset viewer.