Changeset 14362 for trunk/FACT++/src
- Timestamp:
- 08/13/12 21:23:17 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/smartfact.cc
r14353 r14362 713 713 } 714 714 715 voidHandleControlStateChange(const EventImp &d)715 int HandleControlStateChange(const EventImp &d) 716 716 { 717 717 if (d.GetSize()==0) 718 return ;718 return StateMachineImp::kSM_KeepState; 719 719 720 720 // [0] DimControl::kReady (Idle) … … 731 731 732 732 if (d.GetQoS()>=2) 733 return ;733 return StateMachineImp::kSM_KeepState; 734 734 735 735 #if BOOST_VERSION < 104600 … … 742 742 if (!file.empty()) 743 743 HandleControlMessageImp(Event(d, file.data(), file.length()+1)); 744 745 return StateMachineImp::kSM_KeepState; 744 746 } 745 747 … … 757 759 } 758 760 759 voidHandleFscControlStateChange(const EventImp &d)761 int HandleFscControlStateChange(const EventImp &d) 760 762 { 761 763 const int32_t &last = fDimFscControl.last.second; … … 763 765 764 766 if (last==DimState::kOffline || state==DimState::kOffline) 765 return ;767 return StateMachineImp::kSM_KeepState; 766 768 767 769 if (last<FSC::State::kConnected && state==FSC::State::kConnected) … … 776 778 SetAudio("shutdown"); 777 779 } 780 781 return StateMachineImp::kSM_KeepState; 778 782 } 779 783 … … 924 928 } 925 929 926 voidHandleDriveControlStateChange(const EventImp &d)930 int HandleDriveControlStateChange(const EventImp &d) 927 931 { 928 932 const int32_t &last = fDimFscControl.last.second; … … 930 934 931 935 if (last==DimState::kOffline || state==DimState::kOffline) 932 return ;936 return StateMachineImp::kSM_KeepState; 933 937 934 938 if (last<Drive::State::kArmed && state>=Drive::State::kArmed) … … 937 941 if (last>=Drive::State::kArmed && state<Drive::State::kArmed) 938 942 AddMcpConfigurationHist(d, "Drive disconnected"); 943 944 return StateMachineImp::kSM_KeepState; 939 945 } 940 946 … … 1757 1763 // ------------------------------------------------------------------- 1758 1764 1759 voidHandleDoTest(const EventImp &d)1765 int HandleDoTest(const EventImp &d) 1760 1766 { 1761 1767 ostringstream out; … … 1771 1777 1772 1778 ofstream(fPath+"/dotest.data") << out.str(); 1779 1780 return StateMachineImp::kSM_KeepState; 1773 1781 } 1774 1782
Note:
See TracChangeset
for help on using the changeset viewer.