Changeset 18126


Ignore:
Timestamp:
02/13/15 09:34:27 (10 years ago)
Author:
tbretz
Message:
Only go to Locked automatically when a shutdown was really initiatied.
File:
1 edited

Legend:

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

    r18124 r18126  
    19161916        if (now>fSunRise)
    19171917        {
    1918             if ((state==State::kRamping       ||
    1919                  state==State::kVoltageOn     ||
    1920                  state==State::kNotReferenced ||
    1921                  state==State::kOverCurrent))
     1918            const bool shutdown =
     1919                state==State::kRamping       ||
     1920                state==State::kVoltageOn     ||
     1921                state==State::kNotReferenced ||
     1922                state==State::kOverCurrent;
     1923
     1924            if (shutdown)
    19221925            {
    19231926                T::Error("Voltage on at end of nautical twilight!");
     
    19311934            T::Info(msg);
    19321935
    1933             return State::kLocked;
     1936            if (shutdown)
     1937                return State::kLocked;
    19341938        }
    19351939
Note: See TracChangeset for help on using the changeset viewer.