Changeset 16837 for trunk/FACT++/src
- Timestamp:
- 06/14/13 11:06:18 (11 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/HeadersLid.h
r15103 r16837 14 14 kUnknown, 15 15 kPowerProblem, 16 kOvercurrent, 16 17 kClosed, 17 18 kOpen, -
trunk/FACT++/src/lidctrl.cc
r16727 r16837 166 166 fRdfData = ""; 167 167 168 if ((fLid1.status!="Open" && fLid1.status!="Closed" && fLid1.status!="Power Problem" && fLid1.status!="Unknown" ) ||169 (fLid2.status!="Open" && fLid2.status!="Closed" && fLid2.status!="Power Problem" && fLid2.status!="Unknown" ))168 if ((fLid1.status!="Open" && fLid1.status!="Closed" && fLid1.status!="Power Problem" && fLid1.status!="Unknown" && fLid1.status!="Overcurrent") || 169 (fLid2.status!="Open" && fLid2.status!="Closed" && fLid2.status!="Power Problem" && fLid2.status!="Unknown" && fLid1.status!="Overcurrent")) 170 170 Warn("Lid reported status unknown by lidctrl ("+fLid1.status+"/"+fLid2.status+")"); 171 171 … … 355 355 356 356 // Unidentified state detected 357 if ((!fLid1.status.empty() && fLid1.status!="Open" && fLid1.status!="Closed" && fLid1.status!="Power Problem" && fLid1.status!="Unknown" ) ||358 (!fLid2.status.empty() && fLid2.status!="Open" && fLid2.status!="Closed" && fLid2.status!="Power Problem" && fLid2.status!="Unknown" ))357 if ((!fLid1.status.empty() && fLid1.status!="Open" && fLid1.status!="Closed" && fLid1.status!="Power Problem" && fLid1.status!="Unknown" && fLid1.status!="Overcurrent") || 358 (!fLid2.status.empty() && fLid2.status!="Open" && fLid2.status!="Closed" && fLid2.status!="Power Problem" && fLid2.status!="Unknown" && fLid2.status!="Overcurrent")) 359 359 return State::kUnidentified; 360 360 … … 380 380 if (fLid1.status=="Power Problem") 381 381 return State::kPowerProblem; 382 383 // Overcurrent 384 if (fLid1.status=="Overcurrent") 385 return State::kOvercurrent; 382 386 383 387 // Closed
Note:
See TracChangeset
for help on using the changeset viewer.