Changeset 11378
- Timestamp:
- 07/13/11 18:36:11 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ftmctrl.cc
r11372 r11378 1629 1629 case ConnectionFTM::kDisconnected: return FTM::kDisconnected; 1630 1630 case ConnectionFTM::kConnected: return FTM::kConnected; 1631 case ConnectionFTM::kTakingData: return FTM::kTakingData;1632 1631 default: 1633 1632 break; … … 1685 1684 case ConnectionFTM::kIdle: return FTM::kIdle; 1686 1685 case ConnectionFTM::kConfigured: return FTM::kIdle; 1686 case ConnectionFTM::kTakingData: return FTM::kTakingData; 1687 1687 default: 1688 1688 throw runtime_error("StateMachienFTM - Execute() - Inavlid state."); 1689 1689 } 1690 1690 } 1691 1692 if (T::GetCurrentState()==FTM::kConfigured && 1693 fFTM.GetState()==ConnectionFTM::kTakingData) 1694 return FTM::kTakingData; 1691 1695 1692 1696 return T::GetCurrentState(); … … 1895 1899 (""); 1896 1900 1901 // A new configure will first stop the FTM this means 1902 // we can allow it in idle _and_ taking data 1897 1903 T::AddEvent("CONFIGURE", "C", FTM::kIdle, FTM::kTakingData) 1898 1904 (boost::bind(&StateMachineFTM::ConfigureFTM, this, _1))
Note:
See TracChangeset
for help on using the changeset viewer.