Changeset 10799 for trunk/FACT++/src
- Timestamp:
- 05/24/11 17:39:48 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ftmctrl.cc
r10790 r10799 20 20 #include "Converter.h" 21 21 22 #include "FACT.h"23 22 #include "tools.h" 24 23 … … 807 806 void Enable(FTM::StaticData::GeneralSettings type, bool enable) 808 807 { 809 fStaticData.Enable(type, enable); 808 if (fStaticData.IsEnabled(type)!=enable) 809 { 810 fStaticData.Enable(type, enable); 811 CmdSendStatDat(); 812 } 810 813 } 811 814 … … 960 963 { 961 964 ConnectionFTM::UpdateHeader(); 965 966 if (fHeader.fType!=FTM::kDynamicData) 967 return; 962 968 963 969 const FTM::DimTriggerCounter data(fHeader); … … 1871 1877 catch (po::multiple_occurrences &e) 1872 1878 { 1873 cout << "Error: " << e.what() << " of '" << e.get_option_name() << "' option." << endl; 1874 cout << endl; 1879 cerr << "Program options invalid due to: " << e.what() << " of '" << e.get_option_name() << "'." << endl; 1875 1880 return -1; 1876 1881 } 1877 1882 #endif 1878 catch (std::exception &e) 1879 { 1880 cout << "Error: " << e.what() << endl; 1881 cout << endl; 1882 1883 catch (exception& e) 1884 { 1885 cerr << "Program options invalid due to: " << e.what() << endl; 1883 1886 return -1; 1884 1887 } 1885 1888 1886 if (conf.Has Print())1889 if (conf.HasVersion() || conf.HasPrint()) 1887 1890 return -1; 1888 1889 if (conf.HasVersion())1890 {1891 FACT::PrintVersion(argv[0]);1892 return -1;1893 }1894 1891 1895 1892 if (conf.HasHelp())
Note:
See TracChangeset
for help on using the changeset viewer.