Ignore:
Timestamp:
03/19/13 09:38:54 (12 years ago)
Author:
tbretz
Message:
Fixed a problem which occured when the status of both lids was empty before the first report after starting a move arrived.
File:
1 edited

Legend:

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

    r15103 r15122  
    355355
    356356        // Unidentified state detected
    357         if ((fLid1.status!="Open" && fLid1.status!="Closed" && fLid1.status!="Power Problem" && fLid1.status!="Unknown") ||
    358             (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") ||
     358            (!fLid2.status.empty() && fLid2.status!="Open" && fLid2.status!="Closed" && fLid2.status!="Power Problem" && fLid2.status!="Unknown"))
    359359            return State::kUnidentified;
    360360
Note: See TracChangeset for help on using the changeset viewer.